alkawryk / tinderjs

Node package providing programmatic access to the Tinder API
197 stars 60 forks source link

The script close himself after two seconds #11

Open anonymous12345678910111213 opened 10 years ago

anonymous12345678910111213 commented 10 years ago

Hello,

i am trying to run the below script test3.js :

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

anonymous12345678910111213 commented 10 years ago

Hi again,

sorry it's working fine, i had version 1.0.6, and updated to 1.0.7 and now it's working ! :)

Thanks cheers