适用于Android的Facebook SDK&"MyApp发生了错误.请稍后再试. [英] Facebook SDK for Android "An error has occurred with MyApp. Please try again later"
问题描述
由于某种原因,我现在一直都收到此错误,当时一切正常,并在几天前发布到我的墙上.
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 ?
推荐答案
110 error_code = Missing User Cookie (as in Jamie's comment)
对我来说,当我退出清除cookie的"Facebook
"应用程序时(提示确认后),这出现在我的应用程序中.现在,回到我的应用程序,facebook对象仍然保存陈旧的"access_token
"和上一个会话数据.
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.
我解决了这个问题,方法是在将'post_id
'返回为'null
'后捕获'110
'错误.如果找到,请执行'logout
()',然后要求重新登录以获取新的'access_token
',然后再发布新消息.
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.
这篇关于适用于Android的Facebook SDK&"MyApp发生了错误.请稍后再试.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!