开发者

Facebook Android SDK randomly stopped working

开发者 https://www.devze.com 2023-02-13 16:41 出处:网络
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. Plea

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

精彩评论

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

关注公众号