2012-02-16 10 views
1

この問題に関する読み込みと読み込みを行ったが、まだ困惑している。FacebookのHTML5 Likeボタンの実装Like&Unlikeでエラーを返す

私はHTML5のようなボタンとJavascript SDKを使用してテストしています。同じようなものと違うものの両方で、同じボタンがエラーを生成していることを除いて、すべてが期待どおりに機能しています。エラーは次のとおりです。

内で指定されたアプリケーションID "104975899017":メタタグ が無効だった "fbがAPP_ID"。

SDKの初期化コードとFacebookのメタタグに正しいアプリIDを設定しました(アプリが何であるかわかります)。

の人々は、彼らが問題を解決する助け考えているようだカップルアプリの設定:

アプリケーションドメイン:store.youngdisciple.com、youngdisciple.com、 blog.youngdisciple.comウェブサイト:http://youngdisciple.com/

は、ここで私が持っているtesting page用のJavascriptです:

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)); 

A NDメタ:

<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> 

答えて

関連する問題