Skip to content

IG User

Justin Stolpe edited this page Oct 6, 2022 · 8 revisions

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();
Clone this wiki locally