D
D
diana-pozigun2018-08-30 15:25:16
JavaScript
diana-pozigun, 2018-08-30 15:25:16

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

3 answer(s)
I
Igor, 2018-09-06
@ig0r74

Recently published component: https://modstore.pro/packages/photos-and-files/mod...
It allows you to display up to 20 latest publications.

A
Alexey Doshchenko, 2018-12-29
@wizzzout

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('.класс контейнера куда выводить');
  });

E
Egor Danchenko, 2018-08-30
@Danchenko

Welcome!
https://www.instagram.com/developer/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question