1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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?
    SEMrush
     
    pratik, May 23, 2020 IP
    SEMrush
  2. JEET

    JEET Notable Member

    Messages:
    3,492
    Likes Received:
    423
    Best Answers:
    16
    Trophy Points:
    235
    #2
    JEET, May 23, 2020 IP
  3. pratik

    pratik Notable Member

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

    wmtips Well-Known Member

    Messages:
    590
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #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,492
    Likes Received:
    423
    Best Answers:
    16
    Trophy Points:
    235
    #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:
    495
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    150
    #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:
    590
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Legacy Instagram API will stop working on June 29, 2020
     
    wmtips, May 26, 2020 IP
  8. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    794
    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