0
votes

I'm totally stuck on this one.. I cant get js sdk or even the oauth link working.. When I try the oauth example, it works just fine:

https://www.facebook.com/dialog/oauth?scope=email,user_birthday&client_id=123050457758183&redirect_uri=http://www.example.com/response/&response_type=token

but in my case:

https://www.facebook.com/dialog/oauth?scope=email,user_birthday&client_id=317872318261965&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fpages%2FDigiComm%2F185749568187479%3Fsk%3Dapp_317872318261965&response_type=token

the link is basically the same, but get's an error I've been fighting with this for days.. And can't understand, what could be the problem, because each time i try to open the auth dialog with js sdk i get this same error.. It must be an error in the app settings on facebook side, but i cant understand what..

I'd say i have the same problem as this guy.. but as i can see he hasnt gotten any answer too: Using OAuth dialog for facebook app do not allow to use canvas URL as redirect_uri

2

2 Answers

1
votes

You need to make sure that the canvas/tab/website URL's in the developer app (https://developers.facebook.com/apps/317872318261965) match the redirect URI in your url.

At the moment, your link is pointing to http://www.example.com - you need to point this to wherever your app is hosted.

0
votes

try to add http://www.example.com/ with all the slashes as website and example.com as app domain

Update:

If it is a canvas app your redirect_uri should be:

urlencode("http://apps.facebook.com/MY_APP_NAMESPACE/");