Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Use Tinder's api to like everyone in the area, over and over and over again.
STEPS
1. go to this link https://www.facebook.com/dialog/oauth?client_id=464891386855067&redirect_uri=https://www.facebook.com/connect/login_success.html&scope=basic_info,email,public_profile,user_about_me,user_activities,user_birthday,user_education_history,user_friends,user_interests,user_likes,user_location,user_photos,user_relationship_details&response_type=token
2. AS SOON as the link loads, copy it, otherwise if you wait even one second too long, it will change because of facebooks security.
3. copy the token off the link, should be a pretty long string.
a. like this 'CAAGm0PX4ZCpsBABSh7cXCD8FC7jqhagPRBdwGZC8fLMmZCeY1dgjZBXCORBQoUN7koqGjQl3oDRZCaoZBc6FmwMBbs03p0SIL6dRW9ZCgzYGZC1qfd50vtqvzzxK3D9jMn1nkizgjMPStZAjxjxxOUNzwUYjg74Jv5QKiTEeIKsfMDvt6uOZAKsXGAGkzoBVal2ZBGhHNPZCHitJTVUNfFsZCZCQxmZBoZANH4IvYGppr0JkHCGBHgZDZD',
4. copy that into the o_token variable
5. Go to your Facebook profile, and copy the name you made or profile id, and copy that into the fb_id variable.
6. make a new folder somewhere
7. cd into it
8. do `npm install tinderjs; npm install fs; npm install underscore`
9 copy this script into a file called tinder_like.js
10. do `touch /tmp/tinlike; chmod 777 /tmp/tinlike; echo 0 > /tmp/tinlike`
11. To have it run in a loop do `watch -n1 node ./tinder_like.js`
12. And sit back and enjoy.
var tinder = require('tinderjs');
var fs = require('fs');
var client = new tinder.TinderClient();
var _ = require('underscore');
var client2 = new tinder.TinderClient();
var matchedNum = 0;
var o_token = 'INSERT_THAT_TOKEN_HERE';
var fb_id = 'INSERT_YOUR_FACEBOOK_ID_HERE';
function getFileContent(srcPath, callback) {
fs.readFile(srcPath, 'utf8', function (err, data) {
if (err) {
throw err;
}
callback(data);
});
}
var likedNum = 0;
getFileContent("/tmp/tinlike", function (data) {
likedNum = data;
});
client.authorize(
o_token,
'jaredwilliams',
function () {
var defaults = client.getDefaults();
var recs_size = defaults.globals.recs_size;
client.getRecommendations(recs_size, function (error, data) {
_.chain(data.results)
.pluck('_id')
.each(function (id) {
client2.authorize(
o_token,
fb_id,
function () {
client2.like(id, function (error, ldata) {
console.log(id);
if (ldata && ldata.matched) {
_.chain(ldata.matched)
.pluck('_id')
.each(function (pid) {
client2.getUser(pid, function (error, udata) {
matchedNum++;
likedNum++;
console.log("Total Matches: " + matchedNum);
console.log("Matched with:" + udata.name);
});
});
} else {
likedNum++;
console.log("Total Liked: " + likedNum);
}
});
fs.writeFile("/tmp/tinlike", likedNum, function (err) {
if (err) {
throw err;
}
});
}
);
});
});
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment