facebook oauth dialog doesn´t start
Posted
by
Franz Deschler
on Stack Overflow
See other posts from Stack Overflow
or by Franz Deschler
Published on 2012-10-18T10:40:10Z
Indexed on
2012/10/18
11:00 UTC
Read the original article
Hit count: 749
Hi i got the following problem: I want the user to authenticate my app, so i want to show the authorisation dialog. To do this, i tried the api function
FB.api("/dialog/oauth", "get", {client_id: APP_ID, redirect_uri: URI}, function(response){
console.log(response);
});
But i get this error:
code: 2500
message: "Unknown path components: /oauth"
type: "OAuthException"
But why? The FB.api call should be the same like
http://www.facebook.com/dialog/oauth?client_id=<app-id>&redirect_uri=<uri>
If i put this url in the browser directly, the dialog is shown. ('window.location' also doesn´t work because of x-frame-options)
© Stack Overflow or respective owner