A
A
arti_djeims2015-04-02 18:09:25
API
arti_djeims, 2015-04-02 18:09:25

How to display a photo for a specific location on instagram?

I know that for this you need an instagram api and an application in it - all this is already there, please help me write the code, otherwise I can’t figure it out)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-04-02
@IceJOKER

Instagram parser in php?
with the help of that library, I organized data parsing by hashtag, read the documentation and go for it, everything is simple.
https://github.com/cosenary/Instagram-PHP-API :

$instagram = new Instagram\Instagram;
$instagram->setClientID(Config::get('app.clientID'));
$params = isset( $_GET['max_id'] ) ? array( 'max_id' => $_GET['max_id'] ) : null;
$media = $instagram->getTagMedia("TAG_NAME", $params);  //тут и хранятся медиа данные
$next_page = $media->getNext();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question