Skip to content
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

[5.x] Revert Facebook picture access token changes #504

Merged
merged 3 commits into from
Dec 4, 2020

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Dec 4, 2020

This reverts #489 which causes the access_token to be exposed to the outside when the picture url is directly served on a webpage. This can lead malicious third parties to make use of said access token and exploit it by making requests on behalf of the Facebook App. In light of this we've decided to revert these changes completely.

Since there's no way at moment anymore to do any tokenless requests to retrieve the Facebook picture only API requests with a token can be made. These need to be built by app developers themselves from now on and hidden behind a custom route in their app in order to serve the picture in a secure fashion. It's very unfortunate that Facebook made these changes but it's out of our hands unfortunately.

I've decided to leave the lastToken property in place so it can at least still be used if needed. I've also added an lastToken method to retrieve it if the app developer needs it.

@taylorotwell taylorotwell merged commit cbad988 into 5.x Dec 4, 2020
@taylorotwell taylorotwell deleted the revert-picture-endpoint-pr branch December 4, 2020 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants