tinder.sign_in(FACEBOOK_ID, FACEBOOK_TOKEN, function(err, r, body) {
   if (req.param('isLike') === true) {
     tinder.like(req.param('userId'), function(err, r, body) {
       res.json(body);
     });
   } else {
     tinder.dislike(req.param('userId'), function(err, r, body) {
       res.json(body);
     });
   }
 });
Example #2
0
		async.eachLimit(users, 2, function(user, callback) {
			tinder.like(user._id, function(err, res, reply) {
				if (err) {
					console.error("Generate matches:",err)
				}
				if (err) {
					stats.fails++
				} else {
					stats.likes++
				}
				if (!reply) {
					console.error("Generate matches, no reply")
				}
				if (reply && reply.match) {
					stats.matches++
					matches.push(reply.match)
				}
				callback()
			})
		}, function(err) {