이 내가 SDK로드 사용하고 코드입니다 :알림
window.fbAsyncInit = function() {
FB.init({
appId : "<APP_ID>",
status : true,
cookie : true,
xfbml : true
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
를 사용자가 클릭 할 때이 초대 호출 버튼 :
function inviteFriends(){
FB.ui(
{
method: 'apprequests',
message: 'invites you to play'
},
function(response){ console.log(response) } // temporary to verify
)
}
사용자 환경은 https://developers.facebook.com/docs/concepts/requests/#ux에 설명 된 것과 비슷하지만 수신자가 로그인하면 Facebook로드 후 알림이 사라집니다.
Notification for facebook app requests not showing up
http://facebook.stackoverflow.com/questions/9689927/ios-fb-request-dialogs-not-working-properly
:답변을 검색, 나는이 발견
http://facebook.stackoverflow.com/questions/10209281/handle-facebook-apprequest-notification
그러나 :
- 샌드 박스 모드를 사용할 수 없습니다;
- 캔버스 앱 URL과 보안 캔버스 앱 URL이 정의되어 있습니다.
- 앱 유형이 웹으로 정의되어 있습니다.
무엇이 누락 되었습니까?
내가 u는이 문제를 해결하기 위해 어떤 해결책을 찾기는하고 긴 time..did 또한 캔버스 응용 프로그램이 있다는 것입니다에 대해 내가 좋아하지 않는 같은 – Dibish