title: Facebook oauth authorize URL and parameter options
body: <p>Facebook provides some documentation on the parameters of <code>oauth</code> login.</p>
  
  <p><a href="https://developers.facebook.com/docs/reference/dialogs/oauth/">Login Dialog OAuth 2</a></p>
  
  <p>Parameters are:</p>
  
  <ul>
  <li>client_id = Your App ID</li>
  <li>redirect_uri = Your App Website URL</li>
  <li>display = page, popup, iframe, async, touch.  How to display login.</li>
  <li>scope = permission names.  Permissions your app is asking the user to grant to your app.</li>
  <li>state = a string included in the response back to your app.</li>
  <li>response_type = code or token or both.  Used in different ways depending on authorization flow.</li>
  </ul>
  
  <p>Is there more information about different types of oauth functionality and the parameters that go with it?</p>
  
  <p>I want information on how to structure the URL for <code>oauth</code>. I know of a couple of configurations. For example:</p>
  
  <pre><code>https://www.facebook.com/dialog/oauth?
     client_id=YourAppID
     &amp;redirect_uri=The URL that you designated in your App Settings for your App
     &amp;response_type=token //Whether you want a `code` returned, or a `token` returned, or both
     &amp;scope=publish_stream // scope prompts the user for the type of permissions being asked for
  </code></pre>
  
  <p>I saw a discussion that showed this:</p>
  
  <pre><code>https://graph.facebook.com/oauth/authorize?
     client_id=123456789
     &amp;redirect_uri=http://example.com/
     &amp;scope=publish_stream,share_item,offline_access,manage_pages
  </code></pre>
  
  <p>Note the difference's of the URL's:</p>
  
  <pre><code>/dialog/oauth?
  </code></pre>
  
  <p>or</p>
  
  <pre><code>/oauth/authorize?
  </code></pre>
  
  <p>What does <code>authorize</code> do? Does it GRANT permissions instead of ASKING for permissions? Where is the documentation on this?</p>