Automatic Tinder Authentication Token Retriever in Python

In a previous blog post I outlined steps for building a Tinder bot in Python. You can view the original post here: Building a Tinder Bot in Python.

A tinder bot can automatically swipe right for you and even send automated messages if you really want to get fancy. However, I should warn you with the typical disclaimer. Any attempts to spam or harass anyone through the use of a bot are not condoned  by myself or Tinder. It could lead to Tinder shutting down your account or worse. What you can do is minimize the amount of work needed to play the dating field, increase your chances of getting matches by auto-swiping, and use data to optimize your swipes, messages, and dates. This post is only for educational purposes.

Below is a “python script to to programmatically retrieve the OAuth token for Tinder” that makes running a Tinder bot much easier. Shout out to the developer! I’m including it here on my blog for reference purposes in case anyone is curious how it works. The original repo is here: Tinder Token Retriever.

import re
import robobrowser
import sys

MOBILE_USER_AGENT = "Mozilla/5.0 (Linux; U; en-gb; KFTHWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.16 Safari/535.19"
FB_AUTH = ""

def get_access_token(email, password):
s = robobrowser.RoboBrowser(user_agent=MOBILE_USER_AGENT, parser="lxml")

## submit login form
f = s.get_form()
f["pass"] = password
f["email"] = email

## click the 'ok' button on the dialog informing you that you have already authenticated with the Tinder app
f = s.get_form()
s.submit_form(f, submit=f.submit_fields['__CONFIRM__'])

## get access token from the http response
access_token ="access_token=([\w\d]+)", s.response.content.decode()).groups()[0]
return access_token

email = sys.argv[1]
password = sys.argv[2]
access_token = get_access_token(email, password)


Thanks for checking my blog out! Stay tuned for more!


9 thoughts on “Automatic Tinder Authentication Token Retriever in Python

  1. srtoken says:

    HIi JOHN

    I run this code… this message—-Plz Solve This

    RESTART: C:\Users\ju\Downloads\tinder-token-retriever-master\

    Traceback (most recent call last):
    File “C:\Users\ju\Downloads\tinder-token-retriever-master\”, line 2, in
    import robobrowser
    ImportError: No module named robobrowser

    Liked by 1 person

  2. Tim S says:

    Thanks John. This was really helpful, but I’m curious long this authentication token lasts? Some other users were saying that they got banned by fb for requesting tokens every couple of hours.


    • John Patrick Roach says:

      Hi Tim,

      Sorry for the slow response here. I can’t be sure exactly how long the tokens last, but the automatic token retriever function I added SHOULD in theory grab you a new token if the current on has expired. But, new bugs have popped up recently so I need to re-examine my code. I will try to provide updates this week.

      Thank you,


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s