Tinder PHP SDK
Easy to use PHP SDK for accessing Tinder data.
NOTE: This SDK is unofficial and based on an unofficial API with no or minimal documentation. Please use with caution as functionality might break or be completely removed each time Tinder changes it's API.
WARNING: NOT FOR PRODUCTION USE!
Add the latest version of tinder-php-sdk to your project by running
composer require pecee/tinder-sdk
This section contains basic examples on how to use the SDK.
Getting your Facebook token
The Tinder PHP-SDK requires a valid authorizes Facebook access-token in order to communicate to the Tinder SDK.
Please follow the steps below to obtain your Facebook access-token.
- Navigate to the following URL.
Before clicking "OK" open Chrome Developer Tools and click on the "Network" tab. Make sure to filter by XHR requests.
Click "OK" to authorize Tinder in the Facebook dialog.
Find your access_token like shown in the screenshot below:
$tinder = new \Pecee\Http\Service\Tinder($fbUserId, $fbToken);
Get user info
$tinder->updateProfile(array('age_filter_min' => 26, 'gender' => 1, 'age_filter_max' => 18, 'distance_filter' => 14);
Get users and groups (Tinder Social) recommendations.
View friends from Facebook that have a Tinder profile.
Get Tinder user by id
The MIT License (MIT)
Copyright (c) 2016 Simon Sessingø / tinder-php-sdk
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.