Yes this is a great fallback.
Also apologies I forgot we added that other per-category social media share image setting. I kinda blacked that out due to trauma over the earlier discussion 
When working on adding this feature I caught a bug. I noticed that right now here is how we prioritize OpenGraph image: first post image > opengraph_image > twitter_summary_large_image_url > site_apple_touch_icon_url.
And https://discourse.codinghorror.com did had the site_apple_touch_icon_url so the twitter:image tag was present <meta name="twitter:image" content="/images/default-apple-touch-icon.png" />.
Turns out Twitter does not support relative image paths. This is now fixed via:
Above commit also adds logo_url as last resort for OpenGraph/Twitter image tag. This updates opengraph image priority to: first post image > opengraph_image > twitter_summary_large_image_url > site_apple_touch_icon_url > logo_url.
Verified the fix on https://discourse.codinghorror.com:
When set, the large_icon may be preferable than site_apple_touch_icon_ur because it’s larger. Also we did bug everyone to set it already.
I added the large_icon as fallback. The new priority is: first post image > opengraph_image > twitter_summary_large_image_url > site_large_icon_url > site_apple_touch_icon_url > site_logo_url .
REFACTOR: Simplify finding the opengraph image · discourse/discourse@ec7f418 · GitHub
This also removes the warning that has been flooding the logs.
SiteSetting.logo_urlhas been deprecated and will be removed in the 2.4 Release. Please useSiteSetting.logoinstead
コミュニティの投稿には複数の画像が含まれていることがよくあります。
画像にタグを付けたり、特定のトピックに対してオープングラフやソーシャル共有用にどの画像を使用するかを定義する方法はありますか?
また、Topic List Previews(@merefield と @angus による)プラグインは、投稿内の最初の画像を取得して、サムネイルやタイル画像として使用します。このプラグインに、2 番目、3 番目、8 番目などの画像を使用するように指示する方法があるかどうか気になっています。
余談ですが @codinghorror、上記の 2.4 リリースに含まれる Better Insert Hyperlink 機能をテストして、Topic List Previews プラグインの議論を見つけ、このハイパーリンクも作成できました。とても素敵な新機能ですね!!![]()
それはすでにプラグインに含まれています。去年、サムネイルピッカーを追加しました :)(ちなみに、それがソーシャル共有に与える影響については検討していません。ぜひ試してみてください!)。
はい、最初の大きな画像が使用されます。したがって、最も重要な画像を最初に表示し、サイズが十分であることを確認してください(小さな画像は機能しません)。
@merefield と @codinghorror さん、Topic List Previews ツールを使用すると、サムネイルの代表画像として使用する画像を選択できるだけでなく、選択した画像がデフォルト設定である投稿の最初の画像の代わりに、Open Graph やソーシャル共有で表示される画像としても機能することをお伝えできます。
以下は、「Select Thumbnail」機能を使って 8 番目の画像を選択した例です。共有時や「最新」トピックページでどのように表示されるかをご覧ください:
https://forums.pickleballist.com/t/pickleball-made-a-huge-dent-in-my-life-heres-the-story/130
Topic List Preview プラグイン を使用してサムネイル画像を選択する方法は以下の通りです…
参考までに、Discourse Core は 2021年2月 からこれを実行する機能を持っています。将来的には、より発見しやすくする方法を検討するかもしれませんが、現時点では、画像のマークダウンを手動で編集し、サムネイルとして設定することができます。
デフォルトでは、Discourse はトピックの OP (最初の投稿) の最初の画像を使用します。OP の別の画像を選択したい場合は、マークダウンに |thumbnail を追加します。例:

 << これがサムネイルになります
(これは元々、公式の Topic List Thumbnails トピックで議論されていましたが、このコアのサムネイル選択機能は、そのテーマコンポーネントに限定されるものではありません)

