Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么';Facebook OAUTH2重定向URL的目的是什么?_Facebook_Oauth 2.0_Facebook Oauth - Fatal编程技术网

什么';Facebook OAUTH2重定向URL的目的是什么?

什么';Facebook OAUTH2重定向URL的目的是什么?,facebook,oauth-2.0,facebook-oauth,Facebook,Oauth 2.0,Facebook Oauth,我目前正在重定向到此: https://graph.facebook.com/oauth/authorize?client_id=305384546164461&redirect_uri=http://www.eeisi.com/bridge/auth.php&type=web_server&display=page&scope=publish_stream,%20user_about_me,%20user_likes,%20email 我不知道为什么我需要重定

我目前正在重定向到此:

https://graph.facebook.com/oauth/authorize?client_id=305384546164461&redirect_uri=http://www.eeisi.com/bridge/auth.php&type=web_server&display=page&scope=publish_stream,%20user_about_me,%20user_likes,%20email
我不知道为什么我需要重定向到我的画布页面的应用程序设置中指定的URL。这背后的目的似乎从未提及

所以我重定向到那里,它请求使用该应用程序的许可。。。太好了

然后它转到另一个对话框页面,并请求其他权限。。。好的

然后。。。它转到重定向URL,然后我该怎么办

我是否应该创建某种登录页面,将其重定向回facebook上的画布页面


您需要将代码查询参数交换为访问令牌

请参见此处的步骤4:


您将被重定向回您的应用程序,因为您的应用程序应该知道应用程序机密-您需要将代码交换为访问令牌。

发布此问题后,我意识到我需要将Javascript SDK与PHP SDK结合使用,并以这种方式进行身份验证。谢谢你的回答。
http://www.eeisi.com/bridge/auth.php?code=(long-fricking-string)
http://aps.facebook.com/eebridge/?code=(long-fricking-string)