puneetkay / Facebook-PHP-CodeIgniter

(DEPRECATED) Facebook PHP SDK for CodeIgniter based on Facebook PHP SDK (v.3.2.3)
http://puneetk.com/facebook-php-codeigniter/
79 stars 66 forks source link

Issue with PHP 5.4, getUser() always return 0 #4

Closed srdjanpejic closed 10 years ago

srdjanpejic commented 10 years ago

This is the fix for Facebook PHP SDK for PHP 5.4 and CodeIgniter because there is a problem with $_REQUEST in private function getCode()

https://www.webniraj.com/2012/12/19/facebook-php-sdk-fixing-getuser-on-php-5-4-x/

puneetkay commented 10 years ago

Hi mate,

Did you actually tested it with PHP 5.4? and got 0 on getUser()?

I haven't checked PHP 5.4 yet and as per the reference link, it doesn't support $_REQUEST by default. $_REQUEST has been disabled on CI like forever and solution given in reference link is already implemented in this lib. So according to me, It should just work fine.

Please let me know if you find it otherwise. I will test it as soon as possible.

Regards, Puneet Kalra

Murdocc007 commented 10 years ago

Yes still getting the same error.Please update the sdk as soon as possible!!!!!!