facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.96k forks source link

php Facebook Login issue #1053

Closed ketanvekariya closed 5 years ago

ketanvekariya commented 6 years ago

php login is working fine but some reason its stopped working. The code will be display on the same page for ex. www.mysite.com/?code =dsadasdacxxcx325dfsr435 ... so when i debug its gives me error like "facebook cross-site request forgery validation failed "state"

I just echo url on Oauth2Client.php => getAuthorizationUrl() =>copy url and paste in browser.

Its working fine.

But i dont understand the exact issue.

Please anyone can let me know what will be the issue?

gianpaolodn commented 6 years ago

Possible duplicate of #1049

yguedidi commented 5 years ago

Thank you for using the Facebook PHP SDK! @ketanvekariya it looks like a session issue, make sure the session is started.

If you need help about using it, you should ask your questions on StackOverflow and tag them with the facebook-php-sdk tag.

So I'm closing this, but if you found a bug in the SDK or think about a feature, feel free to open a new GitHub issues.