plugin-icon

Custom Image_Src

作者:OverlappingElvis·
Specify a custom sharing image for Facebook. You can upload an image, use the first image in the post, or use the post thumbnail.
版本
0.31
活跃安装
100
最后更新
Oct 25, 2011

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 <link rel="image_src" href="…" /> approach. If you’re adding more Open Graph meta tags to your <head>, you’d probably want to use <meta property="og:image" content="…" />, but in that case you probably also don’t need this plugin.
  • 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.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 3.2.1
这个插件是可用的下载,适用于您的站点。