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.

is there any way to like Instagram posts by java script

Discussion in 'Programming' started by ayma, Apr 14, 2020.

  1. #1
    Hi guys, I have a question is there any way to like Instagram posts by java script after logining to Instagram ? However I read some articles on the internet, the code didn't work unfortunately
     
    ayma, Apr 14, 2020 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    I can't see why there wouldn't be. I just opened it in my browser and there doesn't seem to be anything preventing a "user script" from running down the page and liking posts.

    What have you tried so far?
    What problems did you encounter?
     
    sarahk, Apr 14, 2020 IP
  3. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #3
    I am sure IG has the right security measure in place to prevent requests made from external sources. You are better off using programs that "send keys" to the browser window. A long time ago I wrote an extremely simple Perl script that added people on MySpace. It would throw key signals and mouse positions to the browser window. I would run it on a separate PC and all it did was automate user actions from the browser. You could also try to create a script that logs in to your IG account. However, this is not going to be done with JavaScript unless it's node.js
     
    NetStar, Apr 15, 2020 IP
  4. LewisH95

    LewisH95 Greenhorn

    Messages:
    118
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    23
    #4
    Setting up Instafeed.js is pretty straight-forward. Just download the script and include it in your HTML:


    <script type="text/javascript" src="path/to/instafeed.min.js"></script>

    Instafeed.js also supports AMD/CommonJS:


    // AMD
    require(["path/to/instafeed"], function(Instafeed) {

    });

    // CommonJS
    var Instafeed = require("instafeed.js");

    NPM/Bower

    Instafeed.js is also available on NPM and Bower:


    npm install instafeed.js # npm
    bower install instafeed.js # bower


    Basic Usage
    Here's how easy it is to get all images tagged with #awesome:


    <script type="text/javascript">
    var feed = new Instafeed({
    get: 'tagged',
    tagName: 'awesome',
    clientId: 'YOUR_CLIENT_ID'
    });
    feed.run();
    </script>

    Instafeed.js will automatically look for a <div id="instafeed"></div> and fill it with linked thumbnails. Of course, you can easily change this behavior using the standard options. Also check out the advanced options and the section on templating for additional customization.
     
    LewisH95, May 7, 2020 IP