0

As they mentioned here i add the line in base_facebook.php
after that it throwed this exception OAuthException: An active access token must be used to query information about the current user
thanks in advance!

Community
  • 1
  • 1
Rahul Thiru
  • 70
  • 1
  • 11
  • 1
    Please provide some code – J.K.A. Dec 14 '12 at 05:05
  • if you are not using Outh 2.0 ,After a certain amount of time, your access token expires. To prevent this, you can request the 'offline_access' permission during the authentication – NullPoiиteя Dec 14 '12 at 05:07
  • offlice_access permission is depreciated. – Junaid Dec 14 '12 at 06:37
  • Thanks guys . I added $user instead of me in $Facebook->api('me'); after doing that i worked fine . But when i click logout with redirect page . It is not actually getting logout from Facebook . It is just redirecting to the page. If i did without redirect days. Working fine. But no use of it. Help with guys. – Rahul Thiru Dec 14 '12 at 08:27

1 Answers1

0

I experienced the same issue lately and what I did is changed SSL variables in base_facebook.php

Try following settings.

CURLOPT_SSL_VERIFYPEER => false
CURLOPT_SSL_VERIFYHOST => 2
pinaldesai
  • 1,835
  • 2
  • 13
  • 22