Question

I'm using Play! 2.0.4 with SecureSocial to handle Facebook connect.

With an account that was successfully connecting some days ago, Facebook answers the server with an error, which is thrown here :

https://github.com/aogriffiths/securesocial/blob/master/module-code/app/securesocial/core/providers/FacebookProvider.scala#L65

The error :

{"error":{"message":"Cannot call API on behalf of this user","type":"OAuthException","code":200}}

I thought the token has expired. But a new one is generated at each try to connect.

How can I handle this error ?

Cordially, Julien

Was it helpful?

Solution

To make it acceptable here my answer from the comments:

These messages are sometimes due to breaking changes somewhere on the Facebook roadmap. Be sure to check all the changes for the current month and your app settings if you have enabled/disabled any of them.

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