Jamie
Jamie

Reputation: 683

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 with MyApp. Please try again later."

Does anyone know why this is happening? It was working fine before.

Upvotes: 0

Views: 308

Answers (1)

Guy
Guy

Reputation: 12512

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);
}

Upvotes: 1

Related Questions