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

Follow Facebook login redirect #451

Merged
merged 3 commits into from
Jun 22, 2021
Merged

Conversation

JanMisker
Copy link
Contributor

Facebook redirects to login for all posts, but with a token the OEmbed info is still readable. This change gets the original url from the next query parameter of the redirected login and queries the relevant oembed endpoint.

Fixes #450

Facebook redirects to login for all posts, but with a token the OEmbed info is still readable. This change gets the original url from the `next` query parameter of the redirected login and queries the relevant oembed endpoint.

Fixes oscarotero#450
src/Adapters/Facebook/OEmbed.php Outdated Show resolved Hide resolved
Thanks for pointing out this function (I use a lot of php but usually a bit higher level, so didn't know it existed).
src/Adapters/Facebook/OEmbed.php Outdated Show resolved Hide resolved
@oscarotero oscarotero merged commit 563f796 into oscarotero:master Jun 22, 2021
@oscarotero
Copy link
Owner

Thank you! 👍

@JanMisker
Copy link
Contributor Author

My pleasure, it's a great library you built up.

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.

Facebook embed not working i.e, permalink.php?story_fbid=2746690642272585&id=100007950288639
2 participants