R
R
Ruslan Shadura2016-06-30 11:45:16
PHP
Ruslan Shadura, 2016-06-30 11:45:16

Plugin or way to display specific instagramm photo?

Perhaps there is a plugin ready to display an image from a link to a page with a photo on Instagram?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Ushakov, 2016-06-30
@Houdy

They have a fairly convenient and simple API
Output example in js (jquery)

$.ajax({
        url: 'https://api.instagram.com/v1/users/' + userid + '/media/recent',
        dataType: 'jsonp',
        type: 'GET',
        data: {client_id: clientid, count: count, access_token: 'xxxxxxxxxx'},
        success: function(result){
            for( x in result.data ){
                // result.data[x].images.low_resolution.url - это URL картинки среднего разрешения, 306х306
                // result.data[x].images.thumbnail.url - URL картинки 150х150
                // result.data[x].images.standard_resolution.url - URL картинки 612х612
            }
        }
    });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question