iOS sharing “An error has occurred. Please try again later.”

隐身守侯 提交于 2019-12-01 05:29:36

问题


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?


回答1:


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.




回答2:


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.




回答3:


You can either add your FacebookAppID to the passed parameters, as nick suggests. Or make sure your FacebookAppID is in your plist info file.

Add a string key: FacebookAppID with the value of your Facebook App ID. Then the SDK can automatically add your app id for use everywhere else.



来源:https://stackoverflow.com/questions/16169133/ios-sharing-an-error-has-occurred-please-try-again-later

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!