zandoan / turing-frontend

41 stars 33 forks source link

Internal Server Error on Facebook login #25

Open DanielNgozika opened 5 years ago

DanielNgozika commented 5 years ago

The server returns this error message: "Invalid appsecret_proof provided in the API argument" when logging in with Facebook. Meanwhile, the access_token required in the API field is filled with the accessToken returned from Facebook's response object. What am I doing wrong?

edertaveiraturing commented 5 years ago

Hi Daniel, I'll check it.

edertaveiraturing commented 5 years ago

Daniel, how do you are getting the accessToken?

DanielNgozika commented 5 years ago

I get the access_Token by initializing the Facebook JavaScript SDK on my index.html file and calling the FB.login method on my sign_in file which on success returns amongst others in an object, an access_token. I then pass that access_token as a parameter to the /customers/facebook route but the response above was returned.

AndlerRL commented 5 years ago

I'm having the same issue with the access_token provided from the Facebook Javascript SDK and actually, I'm using the same technique while on Development Environment; I have not seen the result after deployment.

sefaokumus commented 5 years ago

Same here, same error. Is there any progress on this ?

edertaveiraturing commented 5 years ago

@sefaokumus @AndlerRL @DanielNgozika Hi guys. Do you, by chance, are using HTTP instead of HTTPS?

sefaokumus commented 5 years ago

I was on my local host. I will try https. Thanks