2011-08-20 86 views

回答

9
  1. 转到http://developers.facebook.com/tools/debug
  2. 输入网址,通过fbrefresh=CAN_BE_ANYTHING
以下

示例:

  1. http://www.example.com?fbrefresh=CAN_BE_ANYTHING
  2. http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING
  3. 或访问: http://developers.facebook.com/tools/debug/og/object?q=http://www.example.com/?p=3568&fbrefresh=89127348912

我有同样的问题,昨晚,我得到了一些网站的这一解决方案。

Facebook会保存您的缓存缩略图。即使从服务器上删除图像,缩略图也不会更改。但Facebook允许您使用更新fbrefresh

我希望这可以帮助。

+3

'fbrefresh'没有什么特别之处。你实际做的只是改变被请求的URL--它被当作一个新的站点。您可以为相同的结果更改任何查询字符串。 我认为这种混淆源自2008年初在旧FB博客中提到的_example_。 – AndrewF

9

您可以添加到<head></head>

这个标签<link rel="image_src" href="http://URL-TO-YOUR-IMAGE"/>

或更改<html>标签

<html xmlns="http://www.w3.org/1999/xhtml" 
xmlns:og="http://ogp.me/ns#" 
xmlns:fb="http://www.facebook.com/2008/fbml"> 

,并添加到标签<head></head> 这个标签

<meta property="og:image" content="http://URL-TO-YOUR-IMAGE" /> 

别忘了来测试你的链接using facebook debug tool

+1

我设法做了第二个选项,但没有xmlns =“http://www.w3.org/ 1999/xhtml“和xmlns:fb =”http://www.facebook.com/2008/fbml“。似乎工作。 –

-2

比这更容易。

转到您分享的链接。在新标签中打开它。

右上角 - >刷新分享附件

新缩略图变得牵强,你会得到一个选项,选择其他。

希望这有助于:)

+0

这是给最终用户,而不是网站所有者。 OP希望默认情况下出现正确的东西。 –

2

的Facebook页面上使用的meta标签你分享,以确定发布一个链接时要显示的图片,标题和说明。元标记语法遵循Facebook的OpenGraph specification

您需要定义最重要的meta标签是:如果你在现场,你完全控制

  • <meta property="og:title" content="The title of the sharing preview" />
  • <meta property="og:description" content="The first few lines of content below the title" />
  • <meta property="og:image" content="http://example.com/your-image-1200x630px.jpg" />

当然,这仅适用分享。如果您要共享外部链接(如新闻文章),则无法访问其网站,因此无法更改元标记。我使用的是ShareKit.io,它允许您更改您分享的任何链接的标题,描述和图像,而无需使用元标记。

相关问题