1

I am developing a mobile web application, some times it is showing that "the mobile version of the app is unavailable because it is misconfigured for mobile access". Why this is happening? I noticed that it is happening when user is logout form Fb and try to come back to the app it showing login form after login it showing the error.

Please help

4

2 回答 2

0

我遇到了这个问题,问题似乎是,如果您刚刚从 Facebook 重定向到您的应用程序,然后立即重定向回 apps.facebook.com/my-app/sub-uri,那么 Facebook 会引发错误。

这就是我正在做的事情以及我最终做的事情:

我尝试授权我的应用程序,通过重定向到 Facebook 授权并在授权应用程序后重定向到我的 apps.facebook.com/my-namespace/next-step。

在 Facebook 刚刚将您的用户重定向到应用程序之后,使用移动设备访问并重定向回 Facebook,导致错误。

然后我添加了一段移动嗅探代码,如果用户是移动的,它会在内部重定向到/next-step,而不是转到apps.facebook.com。

移动端的初始请求流程:

my.domain.tld/authorize 
-> graph.facebook.com/oauth/authorize 
<- my.domain.tld/authorized 
-> apps.facebok.com/my-app/next-step 

error

如果用户是移动的,我然后将其更改为:

my.domain.tld/authorize 
-> graph.facebook.com/oauth/authorize 
<- my.domain.tld/authorized 
-> my.domain.tld/next-step 

All working fine
于 2012-12-11T18:52:41.433 回答
0

在 Facebook 开发者页面中检查您的原生 iOS 或 Android 应用程序包 ID

于 2013-01-03T06:28:37.793 回答