Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported get request. Object with ID 'me' does not exist

        $fb = new \Facebook\Facebook([
            'app_id' => config('config.fb_app_id'),
            'app_secret' => config('config.fb_app_secret'),
            'default_graph_version' => 'v3.0',
        ]);
        // User info
        $fb->setDefaultAccessToken($access_token);
        $request = $fb->request('GET', '/me?fields=id,name');
        $response = $fb->getClient()->sendRequest($request)->getDecodedBody();

The above code doesn't work and it says "Unsupported get request. Object with ID 'me' does not exist".

Really strange!! This was working fine few days back and suddenly it started throwing Errors. Whats wrong with this code?

like image 712
Ronak Shah Avatar asked Nov 16 '25 14:11

Ronak Shah


1 Answers

Had the same problem. Didn't notice facebook app was in developer mode. Was working for me because I was configured as an admin in the app.

You need to add testers for the app

like image 179
mihaa123 Avatar answered Nov 18 '25 20:11

mihaa123



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!