2017-09-11 30 views
0

私のFacebookブックアプリは、そのサンドボックスにはありません。ダイアログを共有しながらFacebook共有ダイアログが空のメッセージを表示しています

、私はこのような空のメッセージを取得しています:

enter image description here

私は次のようのhrefは次のとおりです。

<a title="send to Facebook" 
    href="http://www.facebook.com/dialog/feed? 
    app_id=1440979716022445& 
    link=http://ariddleaday.com& 
    picture=http://ariddleaday.com/cat.png& 
    name=Can%20you%20help%20Jimmy& 
    caption=A%20Riddle%20A%20Day& 
    description=Try%20this%20and%20have%20fun& 
    message=Jimmy goes to school . His friends Shirushi , Harjot and Aafreen asks him what always ends everything? Jimmy calls you for help , whats the answer ?& 
    redirect_uri=http://ariddleaday.com" 
    > 
<span> 
    Send this Riddle to Facebook 
</span> 
</a> 

私が呼ばれているこの機能を追加しましたクリックしても、同じ出力が得られます。

function postToFeed() { 

     // calling the API ... 
     var obj = { 
      method: 'feed', 
      redirect_uri: 'http://ariddleaday.com', 
      link: 'https://ariddleaday.com', 
      picture: 'http://ariddleaday.com/cat.png', 
      name: 'Riddle of the Day', 
      caption: 'Can you help Jimmy ?', 
      description: 'Jimmy goes to school . His friends Shirushi , Harjot and Aafreen asks him what always ends everything? Jimmy calls you for help , whats the answer ?' 
     }; 

     function callback(response) { 
      document.getElementById('msg').innerHTML = "Thank you for sharing !"; 
     } 

     FB.ui(obj, callback); 

     return false; 

    } 

答えて

1

デバッガでそれをチェックアウト:https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fariddleaday.com

画像が何か欠けている:フィードダイアログのすべてのこれらのパラメータは廃止され

<meta property="og:image" content=".cat.png" /> 

を、あなたは共有URLにオープングラフタグを使用する必要があります。 https://developers.facebook.com/docs/sharing/webmasters/

変更ログ:https://developers.facebook.com/docs/apps/changelog#v2_9

+0

私は画像のメタタグを設定することができますどのように、グラフAPIを勉強していますか?何をしようとしても、私は間違いを起こしています。 –

+1

あなたのHTMLヘッドのセクションに入れてください... – luschn

+0

は、私の答えで共有するための追加のリンクを追加しました。 ) – luschn

関連する問題