Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS sharing "An error has occurred. Please try again later."

I am making publication via [FBWebDialogs presentFeedDialogModally...]
It works fine.
But if I delete application in the facebook settings and try make post again, I get login dialog within web publication view.
And after log in I get an error: "An error has occurred. Please try again later.". No callbacks called.

How can it be fixed?

Log in formError after log in

like image 433
Division Avatar asked Jan 14 '23 14:01

Division


2 Answers

Seems like a bug in the SDK.

Try specifying your app_id in the parameters dictionary passed to [FBWebDialogs presentFeedDialogModallyWithSession:parameters:handler]

The documentation says "Required, but automatically specified by most SDKs" however I found it was not happening automatically.

like image 104
Nick Dowell Avatar answered Jan 21 '23 21:01

Nick Dowell


You can get this error when your app is not available to the public (big slider on "Status & Review" page of the Facebook developer control panel says "NO"), and you have not added the account you log in with in the app as a test user.

I had this situation where I had not yet added my test user (I am using a difference account than my personal one for testing) as a test user to the app.

You can add your test users in the "Roles" page of the Facebook developer control panel.

like image 38
Martijn de Milliano Avatar answered Jan 21 '23 22:01

Martijn de Milliano