內容簡介
如果您在 Facebook 上分享博客文章的連結,則擁有縮略圖像會使分享更加有效。如果您在文章中沒有圖像,Facebook 將使用預設的分享圖像,但如果您想指定一張不在內容中使用的圖像,該怎麼辦呢?為解決這個問題,我創建了一個 WordPress 外掛,允許您控制當從 WordPress 網站分享連結到 Facebook 時顯示的圖像。
感謝Dimas Begunoff提供了非常有用的WPAlchemy MetaBox PHP 類別。
我正在使用 <link rel="image_src" href="…" />方法。如果您要在 <head> 中添加更多的 Open Graph meta 標籤,您可能希望使用 <meta property="og:image" content="…" />,但在這種情況下,您可能不需要此外掛。
如果您使用任何其他添加分享信息、Open Graph 標籤或類似信息的外掛,此外掛可能會與其衝突。
如有任何問題、評論或錯誤,您可以通過 @Overlapping 或 OverlappingElvis [at] gmail [dot] com 與我聯繫。
外掛標籤
開發者團隊
原文外掛簡介
If you’re sharing a link to a blog post on Facebook, having a thumbnail image makes for a much more effective share. If you have an image in the body of your post, Facebook will use that as the share image, but what if you don’t have any images in your post or want to specify an image you’re not using in the content? To solve this problem, I created a WordPress plugin that allows you to control which image shows when a link from your WordPress site is shared on Facebook.
Thanks to Dimas Begunoff for the amazingly helpful WPAlchemy MetaBox PHP Class.
I’m using the approach. If you’re adding more Open Graph meta tags to your
If you’re using any other plugins that add sharing info, Open Graph tags, or similar, this plugin will probably conflict with those.
For questions, comments, or bugs, you can reach me at @Overlapping or OverlappingElvis [at] gmail [dot] com.
