forked from cosenary/Instagram-PHP-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Relationship resources
altunoren edited this page Sep 4, 2012
·
2 revisions
function following($id) {
$instagram = new Instagram(array(
'apiKey' => '12345678912345678912345678912345',
'apiSecret' => '12345678912345678912345678912345',
'apiCallback' => 'http://blablabla.com/success.php'
));
$token = "your_access_token";
$instagram->setAccessToken($token);
$result = $instagram->modifyRelationship("follow", $id);
if ($result->meta->code === 200) {
echo '<center>Now following $id</center>';
} else {
echo '<center>Something wrong :(</center>';
}
}
www.altunoren.net