Facebook提供有关oauth
登录参数的一些文档。Facebook oauth授权URL和参数选项
的参数是:
- 的client_id =您的应用程序ID
- REDIRECT_URI =您的应用程序网站网址
- 显示=页面,弹出窗口,iframe中,异步触摸。如何显示登录。
- scope =权限名称。您的应用允许用户授予您的应用的权限。
- state =返回到您的应用程序的响应中包含的字符串。
- response_type =代码或令牌或两者。根据授权流程以不同方式使用。
是否有更多有关不同类型的oauth功能及其参数的信息?
我想知道如何构造oauth
的URL。我知道一些配置。例如:
https://www.facebook.com/dialog/oauth?
client_id=YourAppID
&redirect_uri=The URL that you designated in your App Settings for your App
&response_type=token //Whether you want a `code` returned, or a `token` returned, or both
&scope=publish_stream // scope prompts the user for the type of permissions being asked for
我看到了一个讨论中表现出这样的:
https://graph.facebook.com/oauth/authorize?
client_id=123456789
&redirect_uri=http://example.com/
&scope=publish_stream,share_item,offline_access,manage_pages
注意网址的区别的:
/dialog/oauth?
或
/oauth/authorize?
什么authorize
做?它是否授予权限而不是提问权限?这个文件在哪里?