问题描述
首先,我确信我的fb应用程序ID是有效的,因为用户可以使用Facebook凭据登录到我的Android应用程序,直到前几天(我认为是在2月中断更改之前)。
最近新用户无法使用Facebook登录我的Android应用程序,因为Facebook继续说我的fb应用程序无效(错误是:无效的应用程序fb-app-id
)BUT 旧用户
谁已经授权我的Android应用程序访问他们的信息仍然可以使用Facebook登录。 (老用户仍然可以使用Facebook凭据登录到我的应用程序,但新用户不能)
有谁知道为什么这会发生在我的Facebook应用程序以及如何解决? p>
编辑:访问我收到这个错误
{
error :{
message:不支持获取请求,
type:GraphMethodException,
code:100
}
}
谢谢。
如果您确定该应用程序不在沙箱模式(这是gema.megantara的答案),并且由于政策原因,Facebook还没有被删除,我可以想到的唯一的解释就是你已经被限制人口统计(即按国家或年龄)的应用程序
如果是这种情况,API将不会返回应用的详细信息,除非您使用用户acce进行API调用符合您应用的任何限制的用户的ss令牌,不符合要求的用户将无法使用该应用。
如果是您所做的,您可以通过API(通过或
如果使用前端界面更改设置,那就是App Restrictions字段想编辑,附加截图
First of all I'm sure that my fb app id is valid because users can log in my Android app using facebook credentials until some days ago (I think it's before Feb break change).
Recently new users cannot log in my Android app using facebook any more because facebook keep saying that my fb app invalid (Error is: Invalid application fb-app-id
) BUT old users
who already authorized my Android app for accessing their info can still log in using facebook. (Old users can still login to my app using facebook credentials but new users cannot)
Does anyone know why this happen to my facebook app and how to fix it?
Edit: When access to https://graph.facebook.com/facebook-app-id I get this error
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
Thanks you.
If you're sure the app is not in sandbox mode (which was gema.megantara's answer), and hasn't been deleted for policy reasons by Facebook the only explanation I can think of is that you've restricted the app demographically (i.e by country or age)
If that's the case the API won't return the app's details unless you make the API call using a user access token for a user who meets whatever restrictions you've applied, and users who don't meet the requirements won't be able to use the app.
If that's what you've done, you can remove the restrictions via the API (via the restrictions
field of the Application object or in the ''Advanced'' tab in the app settings in the App Dashboard
If using the frontend interface to change the settings, it's the ''App Restrictions'' field you want to edit, screenshot attached
这篇关于为什么Facebook应用程序ID突然变得无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!