Open dahormez opened 7 years ago
Having this exact same problem... heard any updates?
Also the same issue... any help??? EDIT: This Works: https://github.com/cosenary/Instagram-PHP-API/pull/191/commits/484c974a1aae001f538ad354a004c354dd492ae5
Experiencing the same problem. Is there any solution.. or update??
Same Issue. I tried to apply the update 484c974 mentioned above but it doesn't seem to solve anything. Any solution?
The issue is that in __construct the setApiKey should be setAccessToken. Should be like this:
if (is_array($config)) {
// if you want to access user data
$this->setApiKey($config['apiKey']);
$this->setApiSecret($config['apiSecret']);
$this->setApiCallback($config['apiCallback']);
} elseif (is_string($config)) {
// if you only want to access public data
$this->setAccessToken($config); // Change here
} else {
throw new InstagramException('Error: __construct() - Configuration data is missing.');
}
Session saved Access-token, getUser works all other functions not. Please help ;-)