Instagram PHP API class enables to play with Instagram API easily.
- PHP 5
- cURL extension
- Instagram configurations
To use the class , you have to have Instagram Developer Account
After your registration process, Register new Client
You will have client_id
and client_secret
, if you success.
<?php
require_once 'class.instagram.php';
$scopes = array('basic','relationships','comments','likes');
$actions = array('follow');
$instagram = new Instagram(array(
'clientId' => 'YOUR_CLIENT_ID',
'clientSecret' => 'YOUR_CLIENT_SECRET',
'callbackUrl' => 'CALLBACK_URL',
'scopes' => $scopes,
'actions' => $actions,
));
echo "<a href='{$instagram->getLoginUrl()}'>Login with Instagram</a>";
?>
getUserInfo()
getFollowers()
getFollowing()
getLoginUrl()
Methods summary will be added..