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

Facebook PHP SDK :: Cross-site request forgery validation failed. #1

Open
abhayverma opened this issue Jul 11, 2016 · 0 comments
Open

Comments

@abhayverma
Copy link
Owner

Unable to save Session for Facebook State Param which results in following error :

"Facebook SDK returned an error: Cross-site request forgery validation failed. Required param "state" missing from persistent data."

Made changes to FacebookRedirectLoginHelper.php file, to save and populate 'state' param from Laravel Session Class Helper instead of PersistentDataInterface persistentDataHandler Object.

This fixes the bug for Mozilla and Edge browsers, but the bug persists in Google Chrome browser.

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

No branches or pull requests

1 participant