Search code examples
httptokenaccess-token

What is the use of 'scope' parameter mentioned in HTTP Post Method for OAuth Specification?


I want to generate simple Post Method. I know about client_id and client_secret, However, I don't know about Scope parameter, which is present in the body. Detailed Picture:Detailed Picture


Solution

  • Scope Parameter here is A comma or space separated list of Permissions to request from the person using your app. It is used in OAuth 2.0 Specification. For example in facebook you can see permission set in https://developers.facebook.com/docs/facebook-login/permissions/#basic-permissions enter image description here

    So your example can be like https://graph.facebook.com/oauth/authorize? client_id=123456789 &redirect_uri=http://example.com/ &scope=publish_stream,share_item,offline_access,manage_pages