简体   繁体   中英

Get user infos from facebook Profile URL

Good morning all,

I must create a site in PHP where we enter the url of the facebook profile, and then it must retrieve some information from the profile:

  • The profile picture
  • The name
  • If the profile and verify

I wish I could do it without this connection. What to give me a clue? (I succeeded with tiktok, instagram, etc.) but with facebook it's been a while that I'm looking for the solution

This is not possible for 2 reasons:

  • Scraping is not allowed on Facebook, you must use the API for accessing any data
  • Any user data is unavailable with the API, unless the user authorizes your App to access his data

The correct way to implement verification is to implement login with the Graph API and let the user authorize your App. Btw, this still does not mean you can verify his profile url, because you will not get the real URL, not even with authorization.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM