简体   繁体   English

Facebook Connect移动网络-找不到请求的页面

[英]Facebook Connect Mobile Web - page requested not found

Im creating a mobile website and trying to implement facebook connect. 我创建了一个移动网站并尝试实现facebook连接。 I am using the PHP SDK 我正在使用PHP SDK

I have following code: 我有以下代码:

    $loginUrl = $facebook->getLoginUrl(array(
                'auth_token' => $session['auth_token'],
                'next' => 'http://www.site.com/fbconnect',
                'cancel' => 'http://www.site.com/fbconnect',
                'canvas' => 0,
                                    'fbconnect' => 1,
                                    'req_perms' => 'publish_stream'));

I sign in, but I never get redirected back to my app. 我登录了,但是我再也没有重定向到我的应用程序。 I stay on m.facebook.com w/ a msg The page you requested was not found. 我停留在带有msg的m.facebook.com上找不到您请求的页面。

Is there something im missing? 我有什么想念的吗?

Your site details under the "website" section of your app need to point to the same directory as you call from, that is the most common issue for failure to callback to your site. 应用程序“网站”部分下的网站详细信息需要指向您调用时所在的目录,这是无法回调到网站的最常见问题。 Assuming the "next" is the URL you wish the user to return to of course. 当然,假设“下一个”是您希望用户返回的URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM