Fb.ui apprequests gives me error code 2

So, I have an application using the javascript SDK for facebook (this is not a canvas application, it is standalone, just using fb api to send some invitations). I am currently running it through localhost, this allows people to allow the application and in the jQuery onclick handler it displays the following function for the registered user fb.

function sendRequestViaMultiFriendSelector() { FB.ui({ method: 'apprequests', show_error: true, title: 'Title here', message: 'I\'ve sent you a message' }, function(result){ alert(result); }); } 

the FB.ui request works, the dialog box I select the user appears, and then I receive the following error message:

 API Error Code: 2 API Error Description: Service temporarily unavailable Error Message: User can't send this request: Unknown error 

I am currently logged in as a test user who made friends with another test user, they both allowed the application.

I would be grateful for any advice on how to proceed.

+4
source share
1 answer

There is already an error report: https://developers.facebook.com/bugs/540196825997304

Go there and add your review so that Facebook can better investigate the problem.

I will update this answer as soon as they respond to the error report.

+2
source

Source: https://habr.com/ru/post/1441819/


All Articles