Vanilla JavaScript Instagram Feed without access token. Not using the Instagram API

Overview

⚠️ This repository has been archived ⚠️

The focus of this repository was to provide an easy and ready to use plugin to display an Instagram Feed but since latest Instagram changes, this no longer makes sense. Please, move to an official API based plugin.

If you feel this repo should not be archived, please reach out and let us know. Archiving can always be reversed if needed.

InstagramFeed Build Status

Instagram Feed without using the instagram API. Neither jQuery!

This is a vanilla JavaScript version of the original jquery.instagramFeed

Documentation

Full documentation and examples here

Contributing

Read and follow the CONTRIBUTING.md before sending any pull request.

Comments
  • InstagramFeed stoped working

    InstagramFeed stoped working

    Hello good people, InstagramFeed stoped working on my site.

    This is the error in console:

    InstagramFeed: Unable to fetch the given user/tag. Instagram responded with the status code: No Reason Phrase 5

    I am using curren version from master branch (minified).

    This is my script:

    <script>
        (function () {
            new InstagramFeed({
                'username': 'yogenabrno',
                'container': document.getElementById("insta1"),
                'display_profile': false,
                'display_biography': false,
                'display_gallery': true,
                'callback': null,
                'styling': true,
                'items': 4,
                'items_per_row': 4,
                'margin': 1,
                'image_size': 640
            });
        })();
    </script>
    
    
    opened by urza 14
  • Publish to npmjs and allow for import access

    Publish to npmjs and allow for import access

    Hi there, this looks like an amazing project.

    I'm trying to install this into my project via yarn but it doesn't look like you've published it to a npmjs site and created a tagged release. Would it be possible to do this?

    Also, would it be possible to give us the ability to import the project instead of having have a hardcoded .js in the header?

    This would enable a developer to do something like this:

    <script>
    import InstagramFeed from 'jsanahuja/InstagramFeed';
    
    export default{
    	mount(){
    		InstagramFeed({
    			'username': 'instagram',
    			'container': document.getElementById("instagram-feed1"),
    			'display_profile': true,
    			'display_biography': true,
    			'display_gallery': true,
    			'callback': null,
    			'styling': true,
    			'items': 8,
    			'items_per_row': 4,
    			'margin': 1 
    		});
    	}
    }
    </script>
    
    03 ISSUE: Enhancement 
    opened by JamesFreeman 9
  • Add optional cache layer to help with (jquery.instagramFeed) issue #25. Default state is not caching.

    Add optional cache layer to help with (jquery.instagramFeed) issue #25. Default state is not caching.

    Greets Team InstagramFeed,

    I've added a cache layer to help deal with this error message:

    InstagramFeed: It looks like YOUR network has been temporary banned because of too many requests. See https://github.com/jsanahuja/jquery.instagramFeed/issues/25
    

    This adds 3 new config options:

       // option.name: default_value
       cache_use: false,
       cache_for: "30:min",
       cache_prefix: "igf_",
    

    Docs & version number updated as per CONTRIBUTING.md.

    An aside: I ran into a small snafu with the version number. There's a mismatch between src/ InstagramFeed.js (@1.4.0) and package.json (@1.5.4). I ended up going with 1.6.0 since this is a backwards compatible API change.

    Let me know if you'd like anything changed and thank you SO much for an Instagram option that isn’t painful!

    -Dan

    opened by cube-dan 7
  • CORS policy workaround

    CORS policy workaround

    For anyone encountering CORS policy errors, try using this as a host:

    'host': "https://images" + ~~(Math.random() * 3333) + "-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url=https://www.instagram.com/"

    Solution provided by @colinchadwick here https://github.com/jsanahuja/jquery.instagramFeed/issues/103#issuecomment-788260968

    opened by piotrmerton 5
  • Started getting `TypeError: undefined is not an object (evaluating 'a[1].split')` for specific username

    Started getting `TypeError: undefined is not an object (evaluating 'a[1].split')` for specific username

    I have tested, and other usernames and the demo website work, however when I use this with the username, 'blacklinesdrinks' (https://www.instagram.com/blacklinesdrinks/), I get the error TypeError: undefined is not an object (evaluating 'a[1].split') in the console.

    I'm not sure what the issue could be, as this username was working at one point, and it doesn't appear to be a network ban as the demo website and other usernames still appear to be working.

    Any help in getting this resolved would be greatly appreciated

    opened by dhruveonmars 5
  • added-display-captions-option

    added-display-captions-option

    Added an option to display instagram post captions as overlay on the posts on hovering. display_caption is true by default. A screenshot of the caption visible on hovering is attached:

    image

    opened by N-Shar-ma 4
  • Question - can I also query images galleries ?

    Question - can I also query images galleries ?

    This is awesome by the way!!! Many thanks for the hard work ;)

    Can this also get Instagram carousel images?

    For example on img click send another request to see all the images on that gallery/carousel ?

    I had this working and on the new API everything stopped working. :(

    opened by mylastore 4
  • Exclude movies from feed?

    Exclude movies from feed?

    Right now InstagramFeed fetches all feed including movies from profiles, the problem is that movies are imported as black images with hrefs, which looks... weird.

    Example: feed

    Any way to exclude videos?

    opened by Nikodemsky 4
  • Profile and IGTV fetch results in 301 from Instagram

    Profile and IGTV fetch results in 301 from Instagram

    Hello, first of all I would like to appreciate the work that has been done by the author. Thank you for all your time and work.

    I have spotted a tiny issue with the instagram URL for the profile and IGTV feed. While providing username, upon GET request, 301 HTTP status is returned from Instagram, where the location header presents the requested URL with slash / appended.

    So: https://instagram.com/instagram results in 301 with location header: https://instagram.com/instagram/. Looking at the source code, I can see that this both affects profile feed and IGTV, while the tags URL is being built correctly.

    The easy workaround is to add a trailing slash / to the username option.

    I know this is not a big deal since 301 is strongly cached by the browser, but still.

    Thank you and best regards.

    opened by Dandry 4
  • ReferenceError: InstagramFeed is not defined

    ReferenceError: InstagramFeed is not defined

    ReferenceError: InstagramFeed is not defined https://vamsithota.me/photography2/:93 https://vamsithota.me/photography2/:105

    Here's the code I have inserted in tag. `

    `

    Here's the code I have used in tag. <div id="instagram-feed1"></div>

    The Feed is not loading and throwing this error image

    How do I fix this issue?

    06 ISSUE: Not an issue 08 ISSUE: Support 
    opened by vamsi3001 4
  • "Object doesn't support property or method 'assign'" From Internet Explorer

    ....it's 6AM and I need sleep. The script works perfectly in Firefox, Opera, and Chrome. But IE11? Nope! I don't blame you or your coding. I blame those knucks down in Redmond who refuse to work together with the rest of us. Productivity never trumps profit. goodnight :)

    opened by matthewtdemery 3
  • CORS policy workaround is inconsistent

    CORS policy workaround is inconsistent

    The solution posted here works sometimes but is not consistent. I still get blocked by CORS errors sometimes, then I have to wait a while. Any advice to get this to work consistently? Or is it a request limit issue? I'm storing the retrieved posts in cookie so that I'm not making the request on every page load. But if new site visitors are going to get the CORS issue then this won't work out. Here's my options object:

     {
            'username': '<username>',
            'container': feedEntry,
            'display_profile': false,
            'display_biography': false,
            'display_gallery': true,
            'styling': false,
            'max_tries': 1,
            'callback': cacheFeed,
            'styling': true,
            'items': 5,
            'items_per_row': 5,
            'margin': 1,
            'lazy_load': true,
            'on_error': console.error,
            'host': "https://images" + ~~(Math.random() * 3333) + "-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url=https://www.instagram.com/",
            'cache_time': 660
        }
    
    opened by krjo 0
  • Error Cross-Origin Read Blocking (CORB)

    Error Cross-Origin Read Blocking (CORB)

    The CORS fix creates a new problem for me: Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www.instagram.com/p/CL7rMUKDOaR/ with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.

    Images don't display and have a URL like this instead: "https://lookaside.instagram.com/seo/google_widget/crawler/?media_id=2520798378721076881"

    image

    I just used the basic configuration with username: "google".

    I added a callback to see the data received:

    image

    All urls start with "https://lookaside.instagram.com/seo/google_widget/crawler/".

    I tried to enter the URL of the host in the browser: "https://images391-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url=https://www.instagram.com/google" and "https://images391-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url=https://www.instagram.com/google/p/CL7Iiq7ly55", I get an error: "your computer or network may be sending automated queries. To protect our users, we can't process your request right now."

    image

    I tried to reload the page on my phone in 4g (in case it's an ip ban), but I have the same error.

    opened by RomainDW 26
Releases(3.0.2)
Owner
Javier Sanahuja
Javier Sanahuja
The new modern discord token grabber & token stealer, with discord password & token even when it changes

The new modern discord token grabber & token stealer, with discord password & token even when it changes

Stanley 143 Jan 6, 2023
Angular JWT refresh token with Interceptor, handle token expiration in Angular 14 - Refresh token before expiration example

Angular 14 JWT Refresh Token example with Http Interceptor Implementing Angular 14 Refresh Token before Expiration with Http Interceptor and JWT. You

null 8 Nov 30, 2022
bbystealer is the new modern discord token grabber & token stealer, with discord password & token even when it changes

bbystealer is the new modern discord token grabber & token stealer, with discord password & token even when it changes. Terms Educational purpose only. Reselling is forbidden. You can use the source code if you keep credits (in embed + in markdown), it has to be open-source. We are NOT responsible of anything you do with our software.

null 10 Dec 31, 2022
a cobbled together alternative UI to launchdarkly, allowing read/write access via LD API access token

discount-launchdarkly a cobbled together alternative UI to launchdarkly, allowing read/write access via LD API access token setup make sure you have a

null 9 Oct 19, 2022
A simple Node.js code to get unlimited instagram public pictures by every user without api, without credentials.

Instagram Without APIs Instagram Scraping in August 2022, no credentials required This is a Node.js library, are you looking for the same in PHP? go t

Francesco Orsi 28 Dec 29, 2022
Twitter RSS (.xml) Feed Scraper Without Developer Authentication

Twitter RSS Feed Scraper Without Authentication Command-line application using Node.js that scrapes XML feeds from Nitter, the free and open source al

Jason Vu 4 Jun 15, 2022
Instagram.css - Complete set of Instagram filters in pure CSS

Instagram.css Instagram.css - Pure CSS Instagram filters. You can add all these Instagram-like filters to your photos with using CSS only. Thanks to t

Yan Zhu 4k Dec 30, 2022
Lavanstax project - Makes it easy and fun to use İnstagram. Also first userbot for İnstagram

Lavanstax Lavanstax project - Makes it easy and fun to use İnstagram. Also first userbot for İnstagram | İnstagram | Telegram Channel | Telegram Group

Berathan Yedibela 19 Oct 15, 2022
Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

null 2 Jan 5, 2022
Ethernaut.5.token - Exercice 5 (Token) on Ethernaut

Advanced Sample Hardhat Project This project demonstrates an advanced Hardhat use case, integrating other tools commonly used alongside Hardhat in the

Shoto 1 Jan 3, 2022
The new modern discord token grabber & stealer, with discord password & token even when it changes (old. PirateStealer)

?? Discord Server - ?? Premium - ?? Builder - ?? Features Authors Stanley Bytixo Autist69420 PirateStealer (by Brooklyn inc) The new modern discord to

Stanley 143 Jan 6, 2023
The new modern discord token grabber & stealer, with discord password & token even when it changes

?? Discord Server - ?? Premium - ?? Builder - ?? Features Authors Râider.#0004 Syborg#0004 Contributors Râider.#0004 Syborg#0004 BbyStealer The new mo

Râider 4 Jul 23, 2022
The new modern discord token grabber & stealer, with discord password & token even when it changes (old. PirateStealer)

?? Discord Server - ?? Premium - ?? Builder - ?? Features Authors Stanley Bytixo Contributors Autist69420 HideakiAtsuyo PirateStealer (by Brooklyn inc

Stanley 2 Apr 12, 2022
This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js

This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js. But in most cases, I would recommend you to use something like Express in a production project for productivity purposes.

Eduardo Dantas 7 Jul 19, 2022
Scrape data from Instagram without applying for the authenticated API 🎯

scraper-instagram Scrape data from Instagram without applying for the authenticated API. Getting started Prerequisites NodeJS NPM or Yarn Install From

fabi.stehle 11 Jan 5, 2023
Minecraft 1.8.9 mod which steals the access token and more things from the targetted user and sends to a backend server for processing. Disclaimer: For educational purposes only.

R.A.T Retrieve Access Token Check DxxxxY/TokenAuth to login into an MC account with a name, token and uuid combo. Features Grabs the username, uuid, t

null 45 Jan 9, 2023
Contains html file showcasing Earthquake related data generated in the form of VR model, ArcGIS API with real-time earthquake feed and video of simulation of earthquake generated in blender

Module-EADGI-Project-All about Earthquakes Introduction Contains html file showcasing Earthquake related data generated in the form of VR model, ArcGI

Abhishek Rawat 2 Jun 9, 2022
A "Basic-to-Lisp" compiler. But Basic is not real Basic, and Lisp is not real Lisp.

Basic2Lisp A "Basic-to-Lisp" compiler. But Basic is not real Basic, and Lisp is not real Lisp. Syntax Print-Sth Put some-value to standard output. PRI

Hana Yabuki 5 Jul 10, 2022