Facebook的HTML5像按钮实现返回错误Like和与
问题描述:
我读过关于这个问题的负载和负载,我仍然难倒。Facebook的HTML5像按钮实现返回错误Like和与
我使用HTML5按钮和Javascript SDK进行测试。一切都按预期工作,除了类似按钮和类似按钮之类的按钮正在产生错误。错误如下:
“fb:app_id”元标记 中指定的应用ID“104975899017”无效。
我已经在SDK初始化代码和Facebook元标记中设置了正确的应用程序ID(是的,我知道一个应用程序是什么)。
,人们似乎认为,一对夫妇的应用程序设置帮助他们解决问题:
应用程序域:store.youngdisciple.com,youngdisciple.com, blog.youngdisciple.com网站:http://youngdisciple.com/
这里是JavaScript的testing page我:
window.fbAsyncInit = function() {
FB.init({
appId : '130960927011182', // App ID
channelUrl : '//www.youngdisciple.com/library/FacebookChannel.aspx', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// CUSTOM LISTENING CODE
FB.Event.subscribe('edge.create',
function(response) {
alert('You liked the URL: ' + response);
}
);
FB.Event.subscribe('message.send',
function(response) {
alert('You sent the URL: ' + response);
}
);
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
一第二元:
<meta property="og:title" content="Test"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="http://s3.pirillo.com/wp-content/uploads/2010/05/MonitorLight.jpg"/>
<meta property="og:url" content="http://youngdisciple.com/facebook/fb-share-detect.html"/>
<meta property="og:site_name" content="Young Disciple Ministries"/>
<meta property="og:description" content="We are testing..."/>
<meta property="fb:app_id" content="130960927011182"/>
而按钮本身:
<div class="fb-like" data-href="http://www.youngdisciple.com" data-send="true" data-width="450" data-show-faces="true"></div>
答
上像的错误是:
该应用程序ID “104975899017” 的内指定的 “FB:APP_ID” 元标记无效。
位于元数据显示
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.youngdisciple.com
所以我想说修复APP_ID主页
对哦,哇!我真的在吠叫错误的树!十分感谢你的帮助!! = d – 2012-02-16 16:35:27