Facebook SDK for Android “An error has occurred with MyApp. Please try again later”

Deadly 提交于 2019-12-25 03:56:52

问题


I get this error all the time now for some reason when everything was working fine and posting to my wall just days before.

My expiration token I believe is set to unlimited so I am out of ideas why it would just randomly stop working.

Does anyone else have/had this ? What can I do to fix it ?


回答1:


110 error_code = Missing User Cookie (as in Jamie's comment)

For me, this came up in my App when I logged out of the 'Facebook' App that cleared the cookie (after prompting for confirmation). Now, coming back to my App, the facebook object still holds the stale 'access_token' and the previous session data.

I got around this, by trapping '110' error after 'post_id' is returned as 'null'. If found, do a 'logout()' and then ask for a re-login to get hold of a new 'access_token' before posting new messages.




回答2:


have at look at the following links:

http://www.droidnova.com/debugging-in-android-using-eclipse,541.html

http://developer.android.com/guide/developing/debugging/ddms.html

the above should help you to debug any errors. My error was more to do with the build path of some of the classes that where in my project, mainly the "main" XML file that android reads from.



来源:https://stackoverflow.com/questions/5141419/facebook-sdk-for-android-an-error-has-occurred-with-myapp-please-try-again-lat

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