开发者

Facebook Connect Mobile Web - page requested not found

Im creating a mobile website and trying to implement facebook connect. I am using the 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,
                               开发者_StackOverflow     '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.

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜