Answer the question
In order to leave comments, you need to log in
How to automatically duplicate posts from Instagram to the site?
The site is on modx revo, is it possible, if so, then contact the programmers or are there ready-made modules for modx?
Answer the question
In order to leave comments, you need to log in
Recently published component: https://modstore.pro/packages/photos-and-files/mod...
It allows you to display up to 20 latest publications.
var accessToken = 'получаете токен и в полет! тут http://instagram.pixelunion.net/';
$.getJSON('https://api.instagram.com/v1/users/self/media/recent/?access_token='+accessToken+'&callback=?',function (insta) {
$.each(insta.data,function (photos,src) {
if ( src.caption == null){ src.caption = 'no caption'};
if ( photos === количество ) { return false; }
$('<a href="'+src.link+'" target="_blank" class="post">'+
'<img src="'+ src.images.standard_resolution.url + '";"></div>').appendTo('.класс контейнера куда выводить');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question