1
I don’t know what happened, but it was working on my Instagram integration site. I did a photo randomization. But out of the blue, the images no longer appear.
For those who know the Instagram Developers API Console, I tested the parameters and they worked. Does anyone know if you’ve had any changes to the way you authenticate on Instagram... ? Or if CURL might be a problem if you change the PHP version ?
Follow the code below:
include_once 'instagram.class.php';
$insta_settings = array(
'client_id' => '***********',
'client_secret' => '***********',
'redirect_uri' => 'http://********.com.br/auth/instagram',
'scope' => array('likes')
);
---------------------------------------------------------------
define('INSTAGRAM_ID', '**********');
define('INSTAGRAM_TOKEN', '**********');
$insta_settings['access_token'] = INSTAGRAM_TOKEN;
$instagram = new Instagram($insta_settings);
$instagram->initRequest('GET');
$instagram->requestUrl('/users/'.INSTAGRAM_ID.'/media/recent');
$images = $instagram->performRequest();
If I make one print_r($images)
doesn’t catch anything.
The class I’m using is this:
All my sites that integrated with the instagram API stopped working. I’m now using this http://instafeedjs.com/
– Erlon Charles
Yeah, man? Noss.... I’m gonna punch Instagram in the face.
– Diego Souza
@Erloncharles, by the way instafeed.js has the function of Like ?
– Diego Souza
Like an image? So far I haven’t seen this, but it may be in implementation
– Erlon Charles
@Erloncharles, I get it. And is there any way I can put an image of my choice in a DIV, for example ? Still image...
– Diego Souza
Yes, you can create a template for the return of the image(s))
– Erlon Charles
I get it. I learned well up to this library. It’s not so hard. Thanks for the referral. If you want to put as an answer for me to choose.
– Diego Souza
OK I’ll put in the answer
– Erlon Charles