Open omarsafwany opened 8 years ago
Hi. I had the same problem. Change my redirectUri the window.location.origin by a static string and work for me.
@omarsafwany Have you looked at the authentication flow in README?
code
parameter gets sent by Facebook to your redirectUri. It happens fast, but when user authorizes the app, Facebook redirects to redirectUri inside a popup: http://localhost/dealandpack-api/public/?code=EXAMPLE
Satellizer intercepts it and sends code=EXAMPLE
to the server.
Commenting out code
is the reason why you are getting that error, because you need authorization code above to obtain access token, with which you can obtain user's profile information.
I'm gonna say something stupid, check whether you can get 'get parameter' at all. if not, edit nginx cofifg: /index.php?$query_string
I followed the instructions to setup the facebook authentication but I got stuck with the following error: {"message":"Missing authorization code","type":"OAuthException","code":1,"fbtrace_id":"EhTKBSlByfw"}
Here's app.js:
Here's the laravel controller:
I can't understand the code parameter that gets sent with the request so when I tried to remove it, I got the above error. I can't find anything related to that code.
Anything missing in my configuration?!