Hi, I wonder if anyone else face this issue when try to login with facebook?
Also happens when trying to login with email/password for facebook authenticated users.
The /login request was succeed. It returns status code 200 with users data.
However, the javascript sdk rejects the request and returns an error. Setting authResponse is not supported
I have tested in js version 2.0.2.
For more information, I have comment out Parse.FacebookUtils.init and the problem is gone.
This is weird but problem seems to be a conflict between Parse.FacebookUtils and Facebook official sdk.
Please see this line of code from unminified facebook js sdk.
It checks for authResponse and returns an error.
Please also look at this line of code of this project.
authResponse is assigned to an option intentionally.
I solve this by change the facebook sdk url from //connect.facebook.net/en_US/sdk.js to //connect.facebook.net/en_US/all.js
The different is sdk.js and all.js
So maybe somebody can look into this issue, Thanks~
I'm also seeing this issue.
Can you open a pull request please? I am not sure where this code is located
Sent with GitHawk
Same for me, started to see this, our facebook login is broken because of this.
thanks for the PR @durunvo !
@flovilmart what can I do to help push this through? This issue is preventing us from releasing to prod :)
The PR don鈥檛 add any test and the resolution doesn鈥檛 match with what was described (changing the SDK URL). So That鈥檚 what I鈥檇 least expect. Cc @dplewis, can you then review, merge and release please?
Sent with GitHawk
I solve this by change the facebook sdk url from
//connect.facebook.net/en_US/sdk.jsto//connect.facebook.net/en_US/all.js
this works for me
thanks everyone!
Most helpful comment
This is weird but problem seems to be a conflict between Parse.FacebookUtils and Facebook official sdk.
Please see this line of code from unminified facebook js sdk.
https://github.com/nfriedly/facebook-js-sdk/blob/cd1f144d334e7e200b2ba6c7ca0e51636063a9b6/debug.js#L14268
It checks for
authResponseand returns an error.Please also look at this line of code of this project.
https://github.com/parse-community/Parse-SDK-JS/blob/8e0f00c5a3dd6043718fec1af1ddc1106058d5e1/src/FacebookUtils.js#L61
authResponseis assigned to an option intentionally.I solve this by change the facebook sdk url from
//connect.facebook.net/en_US/sdk.jsto//connect.facebook.net/en_US/all.jsThe different is
sdk.jsandall.jsSo maybe somebody can look into this issue, Thanks~