FB exchange token api missing redirect_uri

cristian.petroaca picture cristian.petroaca · Jul 1, 2012 · Viewed 21k times · Source

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

Answer

Paul Lysak picture Paul Lysak · Aug 21, 2013

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/