App requests successful, but no notification shown

Emil Ahlbäck picture Emil Ahlbäck · May 28, 2013 · Viewed 26.3k times · Source

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!

Answer

gox picture gox · Jun 3, 2013

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.