How to embed Instagram feed on website?

Discussion in 'Programming' started by pratik, May 23, 2020.

  1. #1
    Hi There,

    I have a custom code site.
    On one of the pages we would like to show instagram photos with a particular hashtag. Does Instagram allow that or I will have to get some special widgets?
     
    pratik, May 23, 2020 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    JEET, May 23, 2020 IP
  3. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #3
    pratik, May 25, 2020 IP
    JEET likes this.
  4. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #4
    It can be implemented by a custom PHP script that:
    1. Downloads web page https://www.instagram.com/explore/tags/hashtag/ (via Curl etc.)
    2. Extracts "window._sharedData" JS variable value
    3. After json_decode you will have the list of images with their properties in $arr['entry_data']['TagPage'][0]['graphql']['hashtag']['edge_hashtag_to_media']['edges']
    4. ?
    5. PROFIT
    P.S. Do not forget to implement caching to prevent IP ban.
     
    wmtips, May 25, 2020 IP
  5. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #5
    There is a free native way, but uses Instagram API
    https://www.instagram.com/developer/
    On that page there is a question, I am using legacy API to display my feed, can I do that with new graph API.
    Answer of that question explains how you can display the feed of your account.
     
    JEET, May 25, 2020 IP
  6. seomanualsubmission

    seomanualsubmission Well-Known Member

    Messages:
    920
    Likes Received:
    132
    Best Answers:
    4
    Trophy Points:
    165
    #6
    Check once this .... You can customize your own code to get instagram feeds to your website for free.
    https :// www. codeofaninja. com/2015/01/display-instagram-feed-website.html
     
    seomanualsubmission, May 25, 2020 IP
  7. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #7
    Legacy Instagram API will stop working on June 29, 2020
     
    wmtips, May 26, 2020 IP
  8. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #8
    I am using the Instagram API and Java Servlet technology to demonstrate my feed as a custom solution on one of my site's product pages. see qisoftware.com/sol/s11.html. Woobox offers commercial solutions. I use a free Instagram widget tool for my personal blog, however there are several restrictions using the service. One may upgrade to a non-free solution which based on the research I have done - is the only solution other than development of a custom interface to pull your feed in the manner you want.
    Q...
     
    QiSoftware, May 26, 2020 IP
  9. Faith_Ruby

    Faith_Ruby Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #9
    If you are using wordpress, it is as easy as installing a plugin in your website.
     
    Faith_Ruby, Jul 9, 2020 IP