This repository was archived by the owner on Jan 13, 2022. It is now read-only.
[4.0][Fix] Fix stdClass error on FacebookRedirectLoginHelper #393
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In Graph
v2.2
and below, GET requests to the/oauth/access_token
endpoint would return a query string in the body of the response:Starting in Graph
v2.3
, the response body is json:Since v4.0 of the PHP SDK translated these two responses differently, it was causing errors for anyone using Graph v2.3 (#391, #392 and even here). This PR is an ugly hack to fix this without BC's. :)
Not sure if this response change will affect any other places in 4.0, but if we get any more issues about
stdClass
errors, you can bet it's due to the Graph response change.Version 4.1 of the SDK is unaffected.