og:网站图片最近已更改.该网站包含超过100个页面,每个页面包含其各自的og:image.我怎么能要求或强迫facebook重新抓取所有页面,以便图像得到更新?使用facebook调试工具将是太繁琐的任务.在facebook重新搜索网站之前,我将无法为该应用提交收藏.
这已经工作了一个多星期了.
FB.ui({
method: 'send',
to: connectionid,
name: subject,
picture: staticurl + 'images/logoformysite.png',
link: homeurl + '/' + username + '/something=' + var1 +'&somethingelse=' + encodeURI(var2) + '&evenmore=' + encodeURI(var3),
description: invitemessage,
});
Run Code Online (Sandbox Code Playgroud)
我上周最初有一个错误,如果URL在Facebook域内,Facebook会阻止它.我修复了这一点,现在图片和链接都不属于Facebook域,来自我的网站.但这种情况今天开始发生,没有任何改变.这是间歇性的.
An error occurred. Please try again later.
API Error Code: 100 API Error Description: Invalid parameter Error Message: 'link' is invalid.
Run Code Online (Sandbox Code Playgroud)
目前尚不清楚为什么它有时会工作而不是其他时间,即使我将它发送给同一个用户.想知道我是否错过了公告.但我希望它至少会一直失败但事实并非如此.
更新: 我不确定如何在页面上全局设置我在对话框中设置的链接.它会将邮件的收件人发送错误的链接.看一下上面如何在新的开放图形世界中起作用的例子真的很有帮助.
答案2013年8月12日
问题围绕着我们的url是动态的,每次都需要强制缓存.我现在对" https://developers.facebook.com/tools/debug/og/object "进行ajax调用以刷新它,然后启动发送对话框.
我们有一个Facebook应用程序,可以在用户完成某些活动时生成自定义可共享链接.可共享页面具有以下元标记:
<meta property="fb:admins" content="1000000000000000">
<meta property="fb:app_id" content="1000000000000000">
<meta property="og:site_name" content="ActivityApp">
<meta property="og:title" content="I just completed this activity.">
<meta property="og:description" content="Click here to see John's activity!">
<meta property="og:type" content="website">
<meta property="og:url" content="http://activity.com/abcd69478383951886c14ae">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="800">
<meta property="og:image:height" content="420">
<meta property="og:image" content="http://cdn.com/abcd69478383951886c14ae.png">
<meta name="author" content="John">
Run Code Online (Sandbox Code Playgroud)
大多数时候,Facebook会在共享链接时正确显示新闻源上的标题,描述和图像.但有时候,og:image和og:title将无缘无故隐藏.这就是它的样子......
奇怪的是,当我们通过单击显示现有的刮擦信息来检查调试器上的链接时,它会说它被正确地抓取并在底部显示标题,图像和描述.
为什么会发生这种情况,我们可以做些什么来确保我们的链接每次共享时都能正确显示?
附加信息:我们的应用程序生成数百万个故事,因此我们无法手动对链接执行任何操作.
facebook facebook-sharer facebook-graph-api facebook-opengraph
facebook ×3