alkawryk / tinderjs Goto Github PK
View Code? Open in Web Editor NEWNode package providing programmatic access to the Tinder API
Node package providing programmatic access to the Tinder API
Can this actually access the functionality in the Tinder API (found on https://gist.github.com/rtt/10403467)?
Here's how another library does it:
TinderApi.prototype.sendSuperLike = function(likedUserId, callback) {
var self = this;
self.checkAuth();
if (!likedUserId || typeof likedUserId !== 'string')
throw new self.ApiException('Missing likedUserId or not String');
request.post(
self.constructReqOpts(TINDER_HOST + '/like/' + likedUserId + '/super'),
self.RequestCallback(callback, 'superLike')
);
};
I tried the auth method with facebook token and facebook user id and got error.
node_modules/tinderjs/tinder.js:166 throw "Failed to authenticate: " + body.error ^ Failed to authenticate: Access Denied
I also tried with CURL.
curl -X POST https://api.gotinder.com/auth --data '{"facebook_token": CAAG..., "facebook_id": 1627...}'
{"code":401,"error":"FacebookTokenRequired"}
Is there anything that I am missing?
Hi, I have a valid fbToken and fbId get with Tinderbot module but the authorize method of tinderjs doesn't seem to work
this.authorize = function(fbToken, fbId, callback) {
console.log('fbToken : ',fbToken)
console.log('fbId : ',fbId)
tinderPost('auth',
{
facebook_token: fbToken,
facebook_id: fbId
},
function(error, res, body) {
console.log('error : ', error);
console.log('body : ', body);
if (!error && body.token) {
xAuthToken = body.token;
_this.userId = body.user._id;
callback();
} else if (body.error){
throw "Failed to authenticate: " + body.error
}
});
};
The console.log('body : ', body); returns :
body { status: 'access denied' }
My question is : Is this still possible to use tinderjs module to use the Tinder API ? and why i've got this access denied ?
Thanks guys
Doesn't look like @alkawryk is maintaining this module. I'm interested in doing so. Anybody else want to fork this thing and get it up to snuff?
Hi, I retreived the userId (_id) from the getHistory matches, but then, when I try to send a message, it returns : null { status: '500', error: 'Match not found' }
Any idea why?
Supposedly, it's available at this endpoint:
I've been using this as my header, and it's working fine with me.
headers = { 'app-version': '123',
'platform': 'ios',
'User-agent': 'Tinder/4.0.9 (iPhone; iOS 8.0.2; Scale/2.00)',
'content-type': 'application/json',
}
@pascalwhoop to unmatch:
DELETE /user/matches/{match_id}/
match_id is different than user_id
To get distance you have to request the matches profile
GET /user/{user_id}
Hello,
i am getting the auth token with the URL :
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
It works fine, but it expires after 2 hours.
Is it possible to get long time token?
(Does Token obtained with CharlesProxy are longer??)
thanks for help :)
See you
This is the code I'm using to authorize it (note that it's actually part of the _this object, but it shouldn't make a difference). Before I run the auth function, I logged the params, and got the following:
access_token: XXXXXXXXXXXXXXXXXXXXXXXXXX, user_id: 7003430XXXXXXXX
So the values are correct, and in the FB response for user_id
, isvalid
is true, so from what I can tell there shouldn't be issues.
_this.client.authorize(access_token, body.data.user_id, function(){
console.log("Authorized");
});
The authorized message is never executed.
Hello, I am new to programming and this is my first time with java or eclipse. When I use the provided code for the bot I get an error on every line, most notably "var can not be resolved to a type". Obviously this is too many errors to be an issue with the code, so it has to be something I am doing wrong. I've looked online but can't find anything. What am I missing?
or need also other parameters? doesn't get the account banned if missing some parameters?
I wrote this simple auto liker implementing the tinderjs api wrapper, wanted to share it with you guys :)
var FACEBOOK_ID = "facebook id obtained with charles method"
var FACEBOOK_TOKEN = "facebook token obtained with charles method"
var DISTANCE = '100'; //miles
var TinderPro = require('tinder_pro')
var tinder = new TinderPro()
var liked = 0;
var maxLikes = 1000;
var matches = 0;
tinder.sign_in(FACEBOOK_ID, FACEBOOK_TOKEN, function (err, res, body) {
tinder.update_search_distance(DISTANCE, function() {
recursivelyLike(tinder);
});
});
function recursivelyLike(tinder) {
tinder.get_nearby_users(function(err, res, body) {
var results = body.results;
results.forEach(function (result) {
tinder.like(result._id, function (err, res, body) {
liked++;
if (body.match) {
matches++;
}
console.log('Liked ' + result.name + ', it was ' + (body.match ? '' : 'not') + ' a match');
if(liked > maxLikes) {
console.log('=== FINISHED ===');
console.log('Liked: ' + liked + ', matched: ' + matches);
process.exit(0);
}
});
});
recursivelyLike(tinder);
});
}
I'm using this module to create a "message all" type functionality.
I pull all the match IDs from getHistory then call sendMessage to each.
I have tried with an account with 800 matches and only around 30 messages appear to go through.
Is there some kind of limit to the number of messages that the API will allow in a period?
Do you know the best method to test if the message was sent and try again if not?
Or should I just delay between sending messages?
Any information would be appreciated. Cheers.
The location is set by default to the last login location on Tinder, so how do you override it to set the location for a latitude and longitude?
why likes remaining always returns 100? dont it return -1 each like i do?
Following the code example in the documentation. It seems the "Hi ;)" doesn't seem to actually appear in the tinder app when checking out the matches made by liking people.
Hello,
var tinder = require('tinderjs');
var client = new tinder.TinderClient();
var _ = require('underscore');
console.log('Trying to log...');
client.authorize(
"CAAGm0PX4ZCpsxxxxxxxxxxxxxxx",
"100007278xxxxxx",
function() {
console.log('log ok');
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) {
client.like(id, function(error, data) {
if (data.matched) {
client.sendMessage(id, "hey ;)");
}
});
});
});
});
When i run it , i got:
C:\Documents and Settings\Utilisateur\node_modules\tinderjs>node test3.js
Trying to log...
C:\Documents and Settings\Utilisateur\node_modules\tinderjs>
Closed after two seconds, i got the facebook token using Charlesproxy to sniff my phone traffic using charles SSL crt file, and the fb user id using http://graph.facebook.com/myusername
Tinder works fine on my phone aswell on bluestacks android emulator,
i don't know what i can't get connect ? can you help me ??
Thanks you very much
Toto84
I always get 11 items, regardless of limit
param's value. Should limit
be removed?
how do i get - fb user token & fb user id,
Looks like Tinder introduced premium features and limited the amount of daily likes one could give. Probably there are some API changes as well.
The location is set by default to the last login location on Tinder, so how do you override it to set the location for a latitude and longitude?
This project is being actively maintained at https://github.com/tinderjs/tinderjs . Please post there with any concerns and we'll help you out, thanks!
Can you add an email address to your github account? I don't want to abuse the Issues section by asking questions.
Hi,
I seem to not be able to find my way in this program. I have followed all your directions, however i just don't get into the localhost... probably because of my server. Is there a way to process it trough a active webserver instead of localhost?
Here the function where I'm invoking it.
https://gist.github.com/austin1237/7bb8ec305bccddf3f5ea
any Idea why this might be happening
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.