Note that there are some explanatory texts on larger screens.

plurals
  1. POChrome Extension: Facebook OAuth with manually retrieved access token?
    primarykey
    data
    text
    <p>As stated in the <a href="https://developers.facebook.com/docs/authentication" rel="nofollow">Facebook Oauth Documentation</a>, in order to use the Client Side Flow with a Desktop App, the special return_uri <code>https://www.facebook.com/connect/login_success.html</code> is required.</p> <p>Opening a new tab from Chrome to the url </p> <p><code>https://www.facebook.com/dialog/oauth?client_id=MYAPPID&amp;redirect_uri=https://www.facebook.com/connect/login_success.html&amp;response_type=token</code></p> <p>works as expected, I am redirected to the login_success page with an <code>access_token</code> parameter containing the token. I can request data from the Graph API using simple GET requests (e.g., with jQuery):</p> <pre><code>$.getJSON("https://graph.facebook.com/me", {access_token : token}, function (d) { .. process returned data }); </code></pre> <p>My question is, can I continue to use the Javascript SDK <strong>without</strong> using the SDK's internal authorization methods. </p> <p><code>FB.getLoginStatus</code> returns an error that my Connect/Canvas URI isn't correct. How am I supposed to check the token status without that method [apart from a manual GET and response matching]?</p> <p><code>FB.login</code> obviously fails with the following error: </p> <blockquote> <p>API Error Code: 191</p> <p>API Error Description: The specified URL is not owned by the application</p> <p>Error Message: Invalid redirect_uri</p> </blockquote> <p>(url does not match domain url in the app's config), as there seems to be no way to internally specify the return_uri above.</p> <p>Is there a way to still rely on the Javascript SDK (especially events) while accessing a token externally? Am I supposed to override the access token?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload