인스타그램 사진가져오기

· 10년 전 · 1606

좋은 기능 같아서 PHP스쿨에서 퍼왔습니다.

http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=80364&page=1 

 

슬라이드쇼 - http://als.musings.it 

클라이언트 넘버 아이디 가져오기 - http://jelled.com/instagram/lookup-user-id 

클라이언트 아이디 - https://instagram.com/developer/clients/manage/ 인스타그램 API 페이지에서 직접 가져오세요. 

 

  [code]

<!DOCTYPE HTML>

<html lang="en">

  <head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <link rel="stylesheet" type="text/css" media="screen" href="als.css" />

    <script type="text/javascript" src="jquery.min.js"></script>

    <script type="text/javascript" src="jquery.als-1.7.min.js"></script>

    <script type="text/javascript">

      $(document).ready(function() {

        $.ajax({

          //url: 'https://api.instagram.com/v1/tags/태그명/media/recent?count=33&client_id=클라이언트-아이디',

          url: 'https://api.instagram.com/v1/users/클라이언트-넘버-아이디/media/recent?client_id=클라이언트-아이디&count=33',

          cache: false,

          dataType: 'jsonp'

        }).done(function( msg ) {

          var result = new Array();         

          $.each(msg.data, function(index, value) { 

            var link = value.link;

            var imageUrl = value.images.low_resolution.url;

            var instaId = value.id;

            result.push('<div class="multiple"><a href="'+link+'" target="_blank"><img border="0" src="'+imageUrl+'" width="210" /></a></div>');

          });         

          $(".slider").html(result.join(""));

          $('.autoplay').slick({

            dots: false,

            slidesToShow: 6,

            slidesToScroll: 1,

            autoplay: true,

            autoplaySpeed: 2000,

          }); 

        });         

      });           

    </script>

  </head>

  <body>

 

    <div class="slider autoplay" style="height:210px;"></div>

   

  </body>

</html>

[/code]  

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 1,110
10년 전 조회 1,209
10년 전 조회 1,408
10년 전 조회 1,315
10년 전 조회 1,238
10년 전 조회 1,199
10년 전 조회 1,211
10년 전 조회 1,209
10년 전 조회 1,144
10년 전 조회 1,614
10년 전 조회 1,100
10년 전 조회 1,114
10년 전 조회 1,347
10년 전 조회 1,145
10년 전 조회 1,171
10년 전 조회 1,022
10년 전 조회 1,286
10년 전 조회 1,108
10년 전 조회 1,032
10년 전 조회 1,071
10년 전 조회 1,766
10년 전 조회 1,108
10년 전 조회 1,121
10년 전 조회 1,107
10년 전 조회 1,226
10년 전 조회 1,715
10년 전 조회 1,309
10년 전 조회 1,125
10년 전 조회 1,042
10년 전 조회 1,100
10년 전 조회 1,182
10년 전 조회 1,096
10년 전 조회 1,165
10년 전 조회 1,090
10년 전 조회 1,243
10년 전 조회 1,116
10년 전 조회 1,100
10년 전 조회 1,021
10년 전 조회 1,668
10년 전 조회 1,162
10년 전 조회 1,108
10년 전 조회 1,132
10년 전 조회 1,128
10년 전 조회 1,137
10년 전 조회 1,147
10년 전 조회 1,626
10년 전 조회 1,082
10년 전 조회 1,143
10년 전 조회 1,026
10년 전 조회 1,607
10년 전 조회 1,194
10년 전 조회 1,189
10년 전 조회 1,248
10년 전 조회 1,183
10년 전 조회 1,197
10년 전 조회 1,119
10년 전 조회 1,014
10년 전 조회 1,153
10년 전 조회 1,028
10년 전 조회 1,322
10년 전 조회 1,064
10년 전 조회 1,040
10년 전 조회 1,085
10년 전 조회 1,101
10년 전 조회 1,143
10년 전 조회 1,080
10년 전 조회 1,093
10년 전 조회 1,260
10년 전 조회 1,084
10년 전 조회 1,176
10년 전 조회 1,111
10년 전 조회 1,173
10년 전 조회 1,276
10년 전 조회 1,146
10년 전 조회 1,119
10년 전 조회 1,146
10년 전 조회 1,221
10년 전 조회 1,134
10년 전 조회 1,091
10년 전 조회 1,118
10년 전 조회 1,120
10년 전 조회 1,072
10년 전 조회 1,095
10년 전 조회 1,304
10년 전 조회 1,463
10년 전 조회 1,367
10년 전 조회 1,118
10년 전 조회 1,124
10년 전 조회 1,088
10년 전 조회 1,094
10년 전 조회 1,192
10년 전 조회 1,140
10년 전 조회 1,041
10년 전 조회 1,109
10년 전 조회 1,485
10년 전 조회 1,912
10년 전 조회 1,512
10년 전 조회 1,305
10년 전 조회 1,320
10년 전 조회 1,133