I'm using the A3M CodeIgniter library, with updated FB PHP-SDK 3.2.
I'm forced into updating from 2.x as Facebook retired their 'legacy' connection method the other day, and that's what the a3m framework used. So I updated to the SDK, and now cannot get the connect process working for a number of reasons:
- Infinite redirect of
getLoginUrl()
CSRF state token does not match one provided
errors (not usinggetLoginUrl()
if I get a user).- User is ALWAYS
0
, even tho I am logged in on FB.
I am really not sure what to do at this point.
My thoughts:
- CodeIgniter could be stripping the response
code
/state
? Not sure - Authentication is failing / no errors being dropped other than CSRF error (not from CI!)
- Many issues reported (especially on SO) with this infinite redirect from FB
- Many issues reported on CSRF issue with PHP SDK.
REF:
https://github.com/facebook/facebook-php-sdk - FB SDK
https://github.com/pengkong/A3M-for-CodeIgniter-2.0 - A3M framework (which I am part of managing).
Ideas?