Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FB exchange token api missing redirect_uri

I am using the FB exchange token api like this :

https://graph.facebook.com/oauth/access_token?client_id={client_id}8&client_secret={client_secret}}&grant_type=fb_exchange_token&fb_exchange_token={one_hour_token}&redirect_uri=http%3A%2F%2Fotagz.cloudfoundry.com%2FfacebookCallback

I am getting the following error :

"message": "Missing redirect_uri parameter., "type": "OAuthException", "code": 191

I have my application URL : otagz.cloudfoundry.com

I know there is another question on the subject but there is no solution to it and it is from 2010.

Does anybody know what's wrong with the redirect_uri?

Thanks, Cristian

like image 371
cristian.petroaca Avatar asked Jul 01 '12 14:07

cristian.petroaca


2 Answers

If you're using CURL command-line tool - probably you have same problem as I had: just put the URL in quotes. See Facebook answer for this bug: https://developers.facebook.com/bugs/1374437326120797

I'm not sure that Facebook uses Stackoverflow as official communication way. You would get faster answer here: https://developers.facebook.com/bugs/

like image 66
Paul Lysak Avatar answered Sep 19 '22 11:09

Paul Lysak


Had the same problem, solved it by reoveing spaces from the url (i copied it from facebook website and there was a couple of extra spaces between the params)

like image 35
Lukáš Benke Avatar answered Sep 19 '22 11:09

Lukáš Benke