Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Facebook profile URL from app-scoped user ID

A Facebook user's profile URL is http://facebook.com/USER_ID. However, with an app-scoped user ID, http://facebook.com/APP_SCOPED_USER_ID doesn't redirect to the user's profile page. How can I reach an user's profile page using just an app-scoped user ID?

like image 591
Leo Jiang Avatar asked Dec 14 '22 21:12

Leo Jiang


2 Answers

Use the link field of the user object. This will look like the following:

https://www.facebook.com/app_scoped_user_id/{app_scoped_user_id}/
like image 97
Tobi Avatar answered Jan 22 '23 19:01

Tobi


The URL - https://www.facebook.com/app_scoped_user_id/{app_scoped_user_id}/ - is access limited, only X request can be made on Y period of time from an account.

I did build a tool to crawl facebook's username base on app-scoped uid, by making a request to that scoped uid profile, I can parse the redirect header to find out the username.

The access limitation makes me suck. :(

like image 20
DQM Avatar answered Jan 22 '23 17:01

DQM