Question

I just copy the source codes from https://developers.facebook.com/docs/reference/dialogs/requests/, JavaScript Example section, change to my API ID, then I can see the Dialog. but when I sent a Request to One or More Users, I always got the error:

An error occurred with xxxx. Please try again later.

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

Did anyone encountered this before?

Was it helpful?

Solution

Facebook must have made some change over the past 12 hours. In your App Settings you'll have to add "App on Facebook" and this should allow your invites to work again.

I had an application that had the same problem and in my App Settings I only had "Website with Facebook Login" and "Page Tab" checked. When I added "App on Facebook" the invitations started to work again.

Note: Now, when a user sends an invite, the invitation will be directed to the app on Facebook as opposed to being directed to your website. For my application I had to add code to redirect from the Facebook App back to the tab.

OTHER TIPS

I have fixed this on my way.

You need a canvas app to use apprequest.

So click App on Facebook on the app setting page.

Create an index file for app including this code

<script type="text/javascript">
    top.location.href = 'REDIRECT_URL'
</script>

Write the app urls and done. The app request will work.

It seems something is wrong with Facebook itself today. We are having a similar problem, I tried to google possible solutions and found your question asked 3 hours before.

Update: bug issue registered on Facebook with more than 30 repros - apprequests return API Error Code: 2 Service temporarily unavailable

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top