Facebook Android SDK randomly stopped working
I have integrated Facebook into my Android app and was able to post to my profile wall. After a few days, I go to do it again and I get "An Error has occurred wit开发者_StackOverflow社区h MyApp. Please try again later."
Does anyone know why this is happening? It was working fine before.
Did you check your authToken for expiration? You could ask for the "offline_access" for it never to expire. Did you check your adb logcat for exceptions that are thrown?
After calling facebook.authorize, onComplete() is called, check:
public void onComplete(Bundle values) {
String token = values.getString(Facebook.TOKEN);
String expiresIn = values.getString(Facebook.EXPIRES);
}
精彩评论