Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
550 views
in Technique[技术] by (71.8m points)

facebook - App requests successful, but no notification shown

I am using the normal setup for sending invites through the requests dialogue:

FB.ui(
  {
    method: 'apprequests', 
    message: "Please add me, I am doing the same, thanks!"
  }, 
  function(response) {
   console.log(response);
  }
);

The response is successful, response.to shows multiple ids. So sending these invites works like it should. The problem is that these apprequests are not shown up as notifications like they usually do, instead the only place to find them here.

Has the API changed? Looking for answers has given me no results, though I did find this bug report from February 15th 2013.

Is Facebook just testing yet again, or has the API changed but not the documentation? I am truly grateful for any insights!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There's two simple things that might cause that problem.

One is that you application is missing the Canvas. Just add it from the your App panel in Facebook Developers.

The second one - make sure your app is NOT in SandBox Mode. If it is it won't send any notifications. I lost hours before figuring that out and changing the code in all possible ways.

Hope that helps.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...