facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.96k forks source link

Notes API is deprecated for versions v2.0 and higher #1126

Closed abhij89 closed 5 years ago

abhij89 commented 5 years ago

I have been trying to integrate SDK for Instagram login. It seems to be returning following error when trying to fetch the instagram user info:

Notes API is deprecated for versions v2.0 and higher.

I am using api v3.2.

Here is the code to fetch info: $response = $fb->get('/<instagram-id>?fields=biography%2Cid%2Cusername%2Cwebsite', $accessToken);

Documentation link I am following is: Official Facebook Instagram Documentation

Login Code for authentication implemented as described here: Official Facebook Github Authentication Example

I made sure of providing all the required permissions including instagram_basic and manage pages when prompted. Did I miss anything?

abhij89 commented 5 years ago

I was using the actual IG id to query the data, while I was supposed to use the ID facebook was returning. Everything worked out just fine. If anyone looking for Instagram Login Wrapper, I have created it here: Instagram Connect + Get User Info