Once I'm redirect url from facebook oauth url not getting query string in laravel 5.1.
Once I print print_r($_GET);
nothing getting anything.
please help for same, why it's not working.
Once I'm redirect url from facebook oauth url not getting query string in laravel 5.1.
Once I print print_r($_GET);
nothing getting anything.
please help for same, why it's not working.
As Joel Hinz has mentioned, you should be using the Input
facade to do this.
If you want to retrieve it all then you can use Input::all();
.
Otherwise you can retrieve the individual inputs like so:
$code = Input::get('code');
$state = Input::get('state');