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>
I가 호출이 기능을 추가 한 클릭하지만 여전히 동일한 출력을 얻고 있습니다
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