Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing works #188

Open
m1chae11 opened this issue Dec 17, 2015 · 3 comments
Open

nothing works #188

m1chae11 opened this issue Dec 17, 2015 · 3 comments

Comments

@m1chae11
Copy link

hi there, after running the script, i receive these notices:

Notice: Undefined index: X-Ratelimit-Remaining in C:\xampp\htdocs\sandbox\Instagram-PHP-API-master\Instagram.php on line 633

Notice: Undefined index: code in C:\xampp\htdocs\sandbox\Instagram-PHP-API-master\example.php on line 16

Notice: Undefined property: stdClass::$access_token in C:\xampp\htdocs\sandbox\Instagram-PHP-API-master\Instagram.php on line 737

Notice: Undefined property: stdClass::$user in C:\xampp\htdocs\sandbox\Instagram-PHP-API-master\example.php on line 19

Notice: Trying to get property of non-object in C:\xampp\htdocs\sandbox\Instagram-PHP-API-master\example.php on line 19
Your username is: 

settings are:

require 'Instagram.php';

use MetzWeb\Instagram\Instagram;

$instagram = new Instagram(array(
    'apiKey'      => 'xxx',
    'apiSecret'   => 'xxx',
    'apiCallback' => 'http://localhost/sandbox/Instagram-PHP-API-master/callback.php'
));

$result = $instagram->getPopularMedia();

// grab OAuth callback code
$code = $_GET['code'];

///testing
$data = $instagram->getOAuthToken($code);
$instagram->setAccessToken($data);
echo 'Your username is: ' . $data->user->username;

@vinkla
Copy link
Collaborator

vinkla commented Dec 17, 2015

Please see #182

@m1chae11
Copy link
Author

hmm, i have changed it from false to true, and still the same?

Does it mean that instagram php api doesnt work anymore?

@vinkla
Copy link
Collaborator

vinkla commented Dec 17, 2015

Please note that this library doesn't yet support their new updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants