Friday, June 10, 2011

Facebook login or permission page redirect loop

After 2 days of my head aching, i am able to find the problem of facebook login or permission infinite loop.

Actually the problem occurs when the facebook graph api ("makeRequest" function in base_facebook.php) make a curl request to https url then curl try to verify the ssl certificate and it returns false (specially in my case). So for quick fix, i have add

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

just after curl_init. Hope it helps you. As it works for me.

Let me know if it works for you.

Cheers

No comments:

Post a Comment