• Register
1 vote
63 views

Problem :

I am very new to Facebook programming. Currently I want to run a very simple code for Facebook connect which I have already written but now a days I often face below error message :
[error] => Array

            (

                [message] => An active access token must be used to query information about the current user.

                [type] => OAuthException

                [code] => 2500

            )
I want expert help here to fix above error as I have already wasted couple of days in debugging above error but no successes yet.
8 5 2
3,230 points

Please log in or register to answer this question.

1 Answer

1 vote

Solution :

To fix above error you need to make sure that your access token is currently active. Also please make sure you are in logged in condition. After this please try to clean the cookies and also your cache from your browser by using ctrl+shift+del.

If even after doing above steps you are still facing the error then in that case you must check if you are getting 0 as the user id in return from your $facebook->getUser().Then you must also check your getAccessTokenFromCode() from the base_facebook.php and after that you must verify your access_token_response format as there is the possibility of it may be in JSON format.

So you must try to use very appropriate decoding method to get your $response_params['access_token'] from $access_token_response.

It will certainly help you.

8 4
5,680 points

Related questions

0 votes
1 answer 97 views
97 views
Problem : I am struggling to find out what is actually happening with my code. My scripts were working fine for some time and suddenly they have half stopped. I am trying to access my api and I am getting back the access token. With my access token, I can access ... to use sessions on the site to keep track of the internal user ids. Unable to know if my sessions could be causing the problem.
asked Jan 10, 2020 alecxe 7.5k points
1 vote
1 answer 107 views
107 views
Problem : Currently I am struggling to find out what is actually happening with my code. My all scripts were working really fine previously but now they are suddenly half stopped. I am trying to access the api but I am getting back the access token. ... am facing below error : Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user.
asked Dec 30, 2019 alecxe 7.5k points
0 votes
1 answer 31 views
31 views
Problem: During installation you must create a root user account for the system. What user account number does this account use?
asked Jul 22, 2020 conner 1.5k points
0 votes
1 answer 192 views
192 views
Problem: ____ is the default name for a new table in an Access database?
asked Mar 9, 2020 ArifulIslam 7.5k points
0 votes
1 answer 981 views
981 views
Problem : I have my facebook messenger application. It has the webhook subscribed to the page events. It used to work fine for me until few days ago, when a webhook was unsubscribed from the page and when I am trying to subscribe it again then it tells me: "Insufficient ... action." I am the owner and admin on both of the FB page and messenger app. Does somebody know what could be a problem?
asked Feb 4, 2020 jwilliam 3.9k points
0 votes
1 answer 9.4K views
9.4K views
Problem : When going to one of the Facebook page: I face the below message: This page isn't available The link you followed may be broken, or the page may have been removed I seriously want to claim the name of that page for my facebook page, but I don't know what a message means, or if I can even claim the page?
asked Feb 3, 2020 jwilliam 3.9k points
0 votes
1 answer 13 views
13 views
Problem: Could not connect to twitter. refresh the page or try again later.
asked Feb 13 Shovo210 2.6k points
0 votes
2 answers 20 views
20 views
Problem: What type of storage media must be used to create a Windows system image?
asked Mar 9, 2020 ArifulIslam 7.5k points