开发者

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜