0
私のFacebookブックアプリは、そのサンドボックスにはありません。ダイアログを共有しながらFacebook共有ダイアログが空のメッセージを表示しています
、私はこのような空のメッセージを取得しています:
私は次のようの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;
}
私は画像のメタタグを設定することができますどのように、グラフAPIを勉強していますか?何をしようとしても、私は間違いを起こしています。 –
あなたのHTMLヘッドのセクションに入れてください... – luschn
は、私の答えで共有するための追加のリンクを追加しました。 ) – luschn