cosenary / Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.
http://cosenary.github.com/Instagram-PHP-API
BSD 3-Clause "New" or "Revised" License
1.46k stars 782 forks source link

modifyRelationship Is Error #138

Open rizkihape opened 9 years ago

rizkihape commented 9 years ago

Hello

I have a error code, i dont know why, its make me angry if see it please help me, the code is

<?php require 'instagram.class.php'; require 'instagram.config.php'; use MetzWeb\Instagram\Instagram; $instagram = new Instagram(array( 'apiKey' => APP_KEY, 'apiSecret' => APP_SECRET, 'apiCallback' => OAUTH_CALLBACK )); // script where you want to use authenticated methods

$instagram->setAccessToken("746725767.59088d5.bbc1b9ba482f47bfba2f93884453f79a");

$result = $instagram->modifyRelationship('follow', 1608280286);

// Dump request status (success: 200) var_dump($result->meta); ?>

and the result is

NULL.

please tell me

umutc commented 9 years ago

is your client id have permission? or can you success gets? for example user idenfies?