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
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?
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
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.