Facebook SDK 400 Bad Request Handling

I am having an issue with a 400 Bad Request (which I know I will get as I’m using an unauthorised test user to try and share) but the issue is that I pause the game and wait for a response using a callback, but the callback is never called when testing the game from the editor and, consequently, the app just stays in a “paused” state.

Is it possible to add some kind of timeout to an FB.Feed() or detect a 400 Bad Request condition, or is this something I will need to implement myself with my own code / coroutine?

Thanks in advance.

This only happens in the editor so the FacebookEditor.cs file had to be edited to handle the 400 Bad Request.

First of all, the application pauses because there has been an exception, and Unity pauses when an error occurs on default. You can change this on the Console window, click on “Error Pause”.

Secondly, If you get a 400 Bad request it will never send you the callback.
On a normal situation, you will not have this error.
Try to connect with your user or a different admin of your Facebook app.