Last active
November 12, 2021 18:28
-
-
Save nojvek/6a088faf0573a839fc00 to your computer and use it in GitHub Desktop.
Tinder Auto-liker script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} | |
?> |
Does this still work?
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
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.