-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove assign authResponse in FB.init #728
Conversation
Codecov Report
@@ Coverage Diff @@
## master #728 +/- ##
==========================================
+ Coverage 88.85% 88.96% +0.11%
==========================================
Files 53 53
Lines 4628 4622 -6
Branches 1070 1068 -2
==========================================
Hits 4112 4112
+ Misses 516 510 -6
Continue to review full report at Codecov.
|
@@ -58,8 +58,6 @@ const provider = { | |||
newOptions[key] = initOptions[key]; | |||
} | |||
} | |||
newOptions.authResponse = authResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @durunvo. I am also seeing this issue. In Facebook's docs I can't see what passing this to FB.init
would have been for, but maybe someone who knows more about this can explain why.
If you do remove this, perhaps there is no need for the whole authResponse
object on line 50 and line 72 could be changed to existingResponse.userID !== authData.id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FB.init require just 4 keys
{
appId : '{your-app-id}',
status : true,
xfbml : true,
version : 'v2.7' // or v2.6, v2.5, v2.4, v2.3
}
So yeah, I also think that it is not needed. But I want some explanation first just to make sure that this is a right thing to do.
But anyway I will push another commit according to your suggestion.
thanks for doing this @durunvo. Who can help to get this pushed through? Our Facebook login is broken right now and it prevents us from pushing a new release to production. edit: and for people stumbling here, @durunvo 's solution of changing the facebook script url from |
@durunvo Thanks for the PR! I tried this in production and it works great. I'm surprise by the all.js and sdk.js fix. http://connect.facebook.net/en_US/sdk/debug.js Both throw the authResponse is no supported error. The FacebookUtils file doesn't have a single test case :( |
Hey @dplewis, I can see you've merged my fork into master. Do you need help with anything else? |
@durunvo We are going to do a Release for this SDK soon to include your fix. The parse-server repo has a lot of PR that could use clean up / review if you want to help. https://github.com/parse-community/parse-server/pulls |
Base on this issue #726
I'm not sure what is the usage for
newOptions.authResponse
in this library. So I remove the line that assignauthResponse
tonewOptions
.Anyone feel free to comment.