IG User - jstolpe/instagram-graph-api-php-sdk GitHub Wiki

Get info and pages for a user.

Get User Info

Get the users profile info.

YouTube Tutorial

use Instagram\User\User;

$config = array( // instantiation config params
    'user_id' => '<USER_ID>',
    'access_token' => '<ACCESS_TOKEN>',
);

// instantiate user for use
$user = new User( $config );

// get user info
$userInfo = $user->getSelf();

Get Users Facebook Pages

Get the facebook pages connected to the user.

YouTube Tutorial

use Instagram\User\User;

$config = array( // instantiation config params
    'access_token' => '<ACCESS_TOKEN>',
);

// instantiate and get the users info
$user = new User( $config );

// get the users pages
$pages = $user->getUserPages();
⚠️ **GitHub.com Fallback** ⚠️