Skip to content

aercandev/Basic-Instagram-Login-Class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Basic Instagram Login Class

Get started

To use the API, register as an developer in Instagram Developer, create an application and receive Client ID Client Secret keys.

Manage Clients> Register a New Clients follow this path

Initialize

$instagram = new instagram([  
  "key" => "API_KEY",  
  "secret" => "API_SECRET",  
  "callback" => "CALLBACK_URL"  
]);
echo '<a href="'.$instagram->loginUrl().'">Login with Instagram</a>';

Authenticate

$token  = $_GET["token"];
$instagram->setAccessToken($token);

Get user data

$user_data  = $instagram->getUser();
echo '<pre>';
print_r($user_data);
echo '<pre>';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages