【发布时间】:2014-06-19 12:11:11
【问题描述】:
我正在尝试 Facebook 开放图,我想在用户分享我的页面时动态分配 og:description, 它是由我的 php 决定的。
<meta name="og:title" content="test1" />
<meta name="og:description" content="<?php echo $_REQUEST['parm'] ?>" />
<meta name="og:image" content="http://nuphoto.com.tw/titleapp4.png" />
<meta name="og:url" content="http://nuphoto.com.tw/share/easygo_bruce.php" />
但是,它总是缓存之前的结果,并且不会改变。 我用谷歌搜索了解决方案,但所有这些都不起作用。 这是我的试验。
转到https://developers.facebook.com/tools/debug 并输入我的网址。 它有效,但我需要动态更改我的页面。所以不适合我。
-
关注How to update facebook open graph image
$.post( 'https://graph.facebook.com', { id: 'http://www.example.com/my/share/url/', scrape: true }, function(response){ console.log(response); });它不起作用,并显示错误。
FB.getLoginStatus() called before calling FB.init(). all.js:53 Object {url: "http://example.com/mytest.php", type: "website", title: "test, image: Array[1], description: "XXX"…}- 有人说添加
v=XXX&fbrefresh=XXX可能会有所帮助,但对我来说仍然失败。
https://www.facebook.com/sharer/sharer.php?u=example.com&fbrefresh&v=xxxx - 有人说添加
请帮帮我,我已经花了几个小时的工作......
【问题讨论】:
标签: facebook facebook-opengraph