$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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With