トピック用のOpen GraphおよびTwitterカードマークアップ

Hi,

As it is my first topic on that forum, I just want to say thank you for the great product. We in CUBA Platform really love it :slightly_smiling_face:

We make announcements of new features on the forum to give an opportunity to the community to give their feedback on the spot. When I include the link to Discourse topic on Twitter the image is always our logo. Unfortunately, I can’t edit the snippet generated by Twitter, which is luckily not the case for Facebook. As a result, we have lots of tweets with logo, for instance, that one. On Facebook, it looks like that.

I looked through the preferences of our forum and found only fields for the twitter markup for all the pages. So, can I somehow change the twitter card markup for the specified topic?

I believe it should default to the first big image in the post you link to, with fallback to twitter summary large image url.

Is there a way not to include the image in the post but to set it in twitter:image tag?

A custom image only for the post, that isn’t in the post? No that’s not possible.

スレッドの tweet:card 設定をカスタマイズできないのは残念です。スレッドをツイートすると、多くの場合ユーザーのアバターが画像として表示され、さらにスレッドの冒頭テキストがスレッドを効果的に宣伝しないことがほとんどです。Summary Card with Large Image を作成できる機能があれば、大きなプラスになるでしょう。このスレッドは古くなっていることは承知していますが、このトピックについて他の情報が見つからず、驚いています。Twitter でサイトを宣伝することは新しいメンバーを惹きつける素晴らしい方法であり、カスタムカード付きのツイートはエンゲージメントが非常に高いためです。

現在、ツイートを投稿する前に、好みの画像を挿入し、導入文を書くために OP を編集し、画像とテキストを読み込ませるために一度ツイートしてから、元の状態に戻すために編集を元に戻す必要があります。来週再度そのスレッドをツイートしたい場合、すべてを再度行う必要があります。

これは私の技術力を超えた内容なので、何が必要なのか見当もつきませんが、例えば WordPress では、すべての SEO プラグインで各投稿に対してカスタム Twitter カードと Open Graph を設定できます。Discourse でも同様のオプションがあれば非常にありがたいです。

なぜ元に戻すのですか?編集後の方が良ければ、その編集は残すべきです。

ユーザーは、管理者が投稿を変更することを望んでいません。コンテンツをよりツイートしやすくするために編集するよりも、ポジティブなユーザーエクスペリエンスを提供する方が重要です。例えば、投稿するたびにOPを変更する、投稿を恒久的に変更する前に同意を求める、スレッドの途中に新しい投稿を追加してそれをツイートする(Twitterは投稿のテキストと画像を取得しますが、リンク先はスレッドの途中になり、ユーザーエクスペリエンスが良くない)といった回避策が多数あります。これらはすべて、スレッドごとにTwitterカードのカスタマイズを可能にする機能に劣ります。

また、私の知る限り、<meta name="twitter:card" content="summary_large_image"><meta name="twitter:card" content="summary" /> の代わりにスレッドに対して有効にする方法はありません。