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
做?它是否授予權限而不是提問權限?這個文件在哪裏?