Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you get Facebook Access Token?

I'm now trying pynder, but it requries you to get a facebook ID and access token.

The facebook ID is what each user has in its own page, such as https://www.facebook.com/profile.php?id=YOUR_ID if I understand it correctly.

However, I don't understand how I get the access token. I first tried to get with this tutorial, but since it is outdated, the actual pop-up page showed two types of ID: Get Use Access Token and Get Access Token. So I registered Facebook Developer program.

Then, I didn't know which to pick, but I tried both anyway. The page didn't show read_stream, by the way. However, I didn't get a correct response when running curl:

curl -X POST https://api.gotinder.com/auth --data '{"facebook_token": fb_token, "facebook_id": fb_user_id}'

This issued an error: {"code":401,"error":"FacebookTokenRequired"}.

How can I get the correct access token to run the program?

like image 396
Blaszard Avatar asked Mar 08 '17 04:03

Blaszard


2 Answers

the following link may help you Getting Facebook Access Token from User Id and Facebook App Secret?

like image 69
Tijo John Avatar answered Oct 19 '22 08:10

Tijo John


Getting Facebook User access tokens:

Step 1: goto : Facebook Graph Explorer

Step 2: Locate and select Get Token in dropbox on right and copy the token from text Box enter image description here

Bonus Step3 : To get User ID associated with access token : click the blue info icon at the starting of text box ![enter image description here

like image 24
Anmol Karol Avatar answered Oct 19 '22 08:10

Anmol Karol