Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a query string to redirect_uri of facebook login button?

I have a Facebook login button and I set redirect_uri to my local URL. I need to pass some value with redirect_uri.

Any idea of doing it?

like image 224
vml19 Avatar asked May 09 '11 11:05

vml19


1 Answers

Use the state parameter to send whatever extra parameters you want to the redirected URL: Optional. An opaque string used to maintain application state between the request and callback. When Facebook redirects the user back to your redirect_uri, this value will be included unchanged in the response.

http://developers.facebook.com/docs/reference/dialogs/oauth/

like image 67
ab3000 Avatar answered Nov 01 '22 09:11

ab3000