Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Tinder Auto-liker script
<?php
// Licence: WTFPL ! http://www.wtfpl.net/about/
$fbAuth = array("facebook_id" => "123456789", "facebook_token" => "<Use charles proxy to do man-in-middle SSL sniffing and extract fb token>");
// Do the magic.
$tinderToken = tinderCall("auth", "token", $fbAuth); // Authenticate
$authToken = "X-Auth-Token: $tinderToken\r\nAuthorization: Token token=\"$tinderToken\"\r\n";
$likerResults = array();
while (true) {
$profiles = tinderCall("user/recs", "results"); // Get the matches
if (!$profiles) exit(":( Oh Shit! you ran out of matches.");
foreach($profiles as $profile){
$match = tinderCall("like/".$profile["_id"], "match");
$result = array(
"name" => $profile["name"],
"birth_date" => @date("d/M/y", @strtotime($profile["birth_date"])),
"distance" => $profile["distance_mi"],
"photo" => $profile["photos"][0]["processedFiles"][0]["url"],
"id" => $profile["_id"],
"match" => $match
);
$likerResults = $result;
print_r($result);
$f = fopen("results.csv", 'a');
fputcsv($f, array_values($result));
fclose($f);
}
}
// Tinder mini-REST API
function tinderCall($path, $returnField = "", $data = ""){
global $authToken;
$context = array(
'http' => array(
'method' => ($data == "") ? 'GET' : 'POST',
'header' => "User-Agent: User-Agent: Tinder/3.0.4 (iPhone; iOS 7.1.1; Scale/2.00)\r\n".
"Content-Type: application/json\r\nos_version: 70000100001\r\nAccept: */*\r\nplatform: ios\r\n".
"app_version: 3\r\n".$authToken
)
);
if ($data != "") $context['http']['content'] = json_encode($data);
//print_r($context);
$response = file_get_contents('https://api.gotinder.com/'.$path, FALSE, stream_context_create($context));
file_put_contents("log.txt", $response."\n", FILE_APPEND);
$response = json_decode($response, TRUE);
//print_r($response);
if($returnField) $response = $response[$returnField];
return $response;
}
?>
@matwassim

This comment has been minimized.

Show comment Hide comment
@matwassim

matwassim Jul 15, 2014

how we use this script

how we use this script

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Jul 15, 2014

awesome script. works really well

ghost commented Jul 15, 2014

awesome script. works really well

@beverstaart

This comment has been minimized.

Show comment Hide comment
@beverstaart

beverstaart Aug 8, 2014

Do you have more info, how I can run this script on my Android device?

Do you have more info, how I can run this script on my Android device?

@stevenirby

This comment has been minimized.

Show comment Hide comment
@stevenirby

stevenirby Aug 21, 2014

Here is what I ended up doing. I actually fired up android virtually on virtual box, installed tinder, and ran it through Charles.

  • install android via virtual box (just google for this)
  • logged into google as myself
  • installed tinder
  • ran charles on my main os
  • started recording
  • on the virtual android, I connected to the "Wi-Fi" but through the proxy
  • fired up tinder, and got the request and response from tinder

Get your token, and then run the php.

Hope this helps.

Here is what I ended up doing. I actually fired up android virtually on virtual box, installed tinder, and ran it through Charles.

  • install android via virtual box (just google for this)
  • logged into google as myself
  • installed tinder
  • ran charles on my main os
  • started recording
  • on the virtual android, I connected to the "Wi-Fi" but through the proxy
  • fired up tinder, and got the request and response from tinder

Get your token, and then run the php.

Hope this helps.

@philipamour

This comment has been minimized.

Show comment Hide comment
@philipamour

philipamour Aug 22, 2014

Doesn't work anymore (if the request seems to be sent from an old client).

Doesn't work anymore (if the request seems to be sent from an old client).

@mokotoy

This comment has been minimized.

Show comment Hide comment
@mokotoy

mokotoy Aug 31, 2014

can you run this script from a mac or pc and not an android?

mokotoy commented Aug 31, 2014

can you run this script from a mac or pc and not an android?

@glen-testing

This comment has been minimized.

Show comment Hide comment
@glen-testing

glen-testing Oct 3, 2014

mokotoy, this script is php, it can run from anywhere. It will actually be harder to run it on android than a mac or pc. You'll need to install php first.

mokotoy, this script is php, it can run from anywhere. It will actually be harder to run it on android than a mac or pc. You'll need to install php first.

@thailemon

This comment has been minimized.

Show comment Hide comment
@thailemon

thailemon Jul 27, 2015

Does this still work?

Does this still work?

@apklods

This comment has been minimized.

Show comment Hide comment
@apklods

apklods Oct 28, 2015

http://www.fbzautoliker.com new generation facebook autoliker , visit and if you like the script message me !

apklods commented Oct 28, 2015

http://www.fbzautoliker.com new generation facebook autoliker , visit and if you like the script message me !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment