Skip to content

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>';
}

}

following(44827500);



www.altunoren.net

Clone this wiki locally