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 at 10:23 AM.

  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 at 10:23 AM IP
    SEMrush
  2. JEET

    JEET Notable Member

    Messages:
    3,129
    Likes Received:
    313
    Best Answers:
    9
    Trophy Points:
    235
    #2
    JEET, May 23, 2020 at 8:46 PM IP
  3. pratik

    pratik Notable Member

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

    wmtips Well-Known Member

    Messages:
    573
    Likes Received:
    54
    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 at 2:38 PM IP
  5. JEET

    JEET Notable Member

    Messages:
    3,129
    Likes Received:
    313
    Best Answers:
    9
    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 at 3:30 PM IP
  6. seomanualsubmission

    seomanualsubmission Well-Known Member

    Messages:
    383
    Likes Received:
    36
    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 at 4:33 PM IP
  7. wmtips

    wmtips Well-Known Member

    Messages:
    573
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Legacy Instagram API will stop working on June 29, 2020
     
    wmtips, May 26, 2020 at 8:48 AM IP
  8. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    791
    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 at 11:10 AM IP