質問

私はこの問題に関する負荷と負荷を読みましたが、私はまだ困惑しています。

HTML5 Like ButtonとJavaScript SDKを使用してテストしています。類似のボタンがエラーを生成していることを除いて、すべてが予想どおりに機能しています。エラーは次のとおりです。

「FB:APP_ID」メタタグ内で指定されたアプリID「104975899017」は無効でした。

SDK初期化コードとFacebookメタタグで、正しいアプリID(はい、アプリとは何かを知っています)を設定しました。

人々が問題を解決するのに役立つと思われるいくつかのアプリ設定:

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

これが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));

そしてメタ:

<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>
役に立ちましたか?

解決

のようなエラーは次のとおりです。

「FB:APP_ID」メタタグ内で指定されたアプリID「104975899017」は無効でした。

上にあるメタデータ http://www.youngdisciple.com ショー

http://developers.facebook.com/tools/debug/og/object?q=http%3a%2f%2fww.youngdisciple.com

だから私はホームページでapp_idを修正すると言う

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top