Instagram has made changes in their API that require developers to apply to get permissions to use functionalities publicly.The default is now to work in a sandboxed version of the API. The developers will only be able to access their own or fellow testers/developers accounts without submitting their apps for review.Basicly it means that you will not be able to grow a following, because the script will only be able to interact with your account.
Instagram Auto Like and Follow script Free Download Here a wonderful script now that is Instagram Liker and Follow for Download. Many of autoliker developers are finding this script and m.
Grow your Instagram follower base using this script.This will use your own account to get real followers that interact with the tags your choose.
Follow me @doefler on twitter to know about updates on this scipt.Please let me know if you would like any other cool features or how this script works for you.https://twitter.com/doefler
Have a look at instagrams api to better understand how the script works.https://instagram.com/developer/
I developed this script for growing the awareness around https://artboost.comThought it would nice to share it with the world and help other startups.So they can survive with minimal marketing budget.
I don't support this automatic bot behavior myself and neither does instagram.Use this script at your own risk!!!
The script does not save any information about which images get liked, what user get followed and so on.That means that it can possibly keep acting on the same items over and over again.Feel free to edit the script to behave more intelligent in that sense and save a record of the actions in a database.
You might get an error like this:The maximum number of requests per hour has been exceeded. You have made 46 requests of the 30 allowed in the last hour.
Then wait a while before running the script again.
Download the files to a folder on your server.You need both the config.php and instagram-growth.php file before it can run you need to update the config.php file.
You need to configure all the fields. And replace the UPPERCASE text with your own informationI already provided a default setup.To get your access_token see the guide below.
Set 'debugging' => false
if you are not interested in seeing an output of what the script does.It can be useful to see if you test it in the browser.
Choose when and if the script should like images
Like | Desciption | Possible values |
---|---|---|
do | Should this action be performed | true /false |
min_likes | If you only want to like when the images has more than a certain amount of likes already | 0 = no limit / 20 = more than 20 likes |
max_likes | The opposite of min_likes. This limits the action to perfom only on images that has less than a certain amount of likes | 0 = no limit / 20 = less than 20 likes |
Choose when and if the script should follow the user that uploaded an image
Follow | Desciption | Possible values |
---|---|---|
do | Should this action be performed | true /false |
min_likes | If you only want to follow users when the images has more than a certain amount of likes | 0 = no limit / 20 = more than 20 likes |
max_likes | The opposite of min_likes. This limits the action to perfom only on images that has less than a certain amount of likes | 0 = no limit / 20 = less than 20 likes |
like_recent | If enabled, the script likes the selected amount of recent images by the followed user | do:true /false AND count: 3 = likes the 3 most recent images |
Choose when and if the script should comment on the image.This feature could quickly feel like a bot for the user.But it does use a random comment generating feature.Set 'do' => true
if you want to try it. And don't forget to configure the 'hello' and 'praise' texts in the config file.
Comment | Desciption | Possible values |
---|---|---|
do | Should this action be performed | true /false |
min_likes | If you only want to comment on images when they has more than a certain amount of likes | 0 = no limit / 20 = more than 20 likes |
max_likes | The opposite of min_likes. This limits the action to perfom only on images that has less than a certain amount of likes | 0 = no limit / 20 = less than 20 likes |
Exclude the hashtag itself '#' when you write your tags.Be aware that the more tags you add, the longer time the script will take to perform.
If you want the script to comment on your behalf you should change the predefined texts to something that makes sense to your customers.Make sure to change the UPPERCASE text to your information.
The script will automaticly add the users name between between the 'hello' and 'praise' text.For example a generated comment could be something like:'Hi Mark Anders your picture is really nice'
Get new token at https://apigee.com/console/instagramAnd follow the guide below.
Start by authenticating the console by signing in with your own instagramClick 'OAuth 2' in the dropdown boxThen click the 'Sign in with Instagram' button
Select a one of the urls from the pull out menu on the leftRun this request by clicking the orange 'Send' button on the right
Your access token for the config can now be found in the left window with the headline 'Request'Copy the value of the access_token and insert into the config.php file (Be aware that it extends to the right behind the vertical window divider).
Run this script periodically with a cronjob.Add a cronjob in linux
Great intro to setting up a cronjob from linux command lineOpen the cronjob editor in linux shell
Run the script once an hour at xx:00 o'clock
The code to run the script
To prevent the code from waiting for the output of the script we add a little something to the end of it
In the end the code for the crontab looks like this
If using vi
editor press esc to switch to the command mode, then type :wq
to write (w) and quit (q) and press Enter.If using nano
editor press CTRL + x, then press y for yes and provide a filename before pressing Enter.
A great guide on how to do other settings with the cronjobhttp://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/
Install the curl module for PHP using the package manager
You will need to restart the server afterwards
Referencehttp://askubuntu.com/questions/9293/how-do-i-install-curl-in-php5
@churu88
For the second confirm add this:
//Second confirm
var el=document.getElementsByClassName('aOOlW -Cab_ ');
for (var i=0;i<el.length; i++) {
el[i].click();
}
The whole code then will be then the following:
/**
openFollowersWindow().then(function () {
populateUnfollowsPool();
digestUnfollowsPool();
});
function openFollowersWindow() {
var onFollowersWindowWasOpenedListeners = [];
var openWindowTimeout = 3000;
}
function getFollowersElement() {
return getFollowersElementWithUsername(getUsername());
}
function getUsername() {
var pageTitleElement = document.getElementsByTagName('h1')[0];
if (!pageTitleElement) throw new Error('No title to get username from');
return pageTitleElement.innerHTML;
}
function getFollowersElementWithUsername(username) {
var followersElement = document.querySelectorAll('a[href='/' + username + '/following/']')[0];
if (!followersElement) throw new Error('No followers element was found');
return followersElement;
}
var unfollowsPool;
function populateUnfollowsPool() {
var buttons = document.getElementsByTagName('button');
unfollowsPool = [];
for (var i = 0; i < buttons.length; i++) {
var button = buttons[i];
if (button.innerHTML.includes('Following')) {
var randomTimeoutForUnfollow = Math.floor((Math.random() * 60) + 58) * 1000;
console.log('Following button!');
}
function digestUnfollowsPool() {
if (unfollowsPool.length 0) {
console.log('Unfollow pool empty, repopulating');
populateUnfollowsPool();
}
var unfollow = unfollowsPool.shift();
var unfollowTimeout = unfollow.timeout;
console.log('Clicking unfollow button in ', unfollowTimeout);
setTimeout(function () {
var unfollowButtonElement = unfollow.buttonElement;
unfollowButtonElement.scrollIntoView(true);
console.log('Clicking unfollow button');
unfollowButtonElement.click();
//Second confirm
var el=document.getElementsByClassName('aOOlW -Cab_ ');
for (var i=0;i<el.length; i++) {
el[i].click();
}
console.log('Clicked. Continuing digesting unfollow pool');
digestUnfollowsPool();
}, unfollowTimeout);
}