Facebook URL to ID

  • apify/facebook-url-to-id
  • Modified
  • Users 206
  • Runs 438.9k
  • Created by Author's avatarApify

Scraping any Facebook URL as data object with internal Facebook ID and metadata if-when available.

Facebook URL to Identified object

Allowed any publicly available (without login) Facebook URLs for desktop web https://www.facebook.com/*. Supported pages, posts, videos, groups and more. For profiles only ID might be available (depends on profile privacy).

Input example

Redirect from https://www.facebook.com/nintendo resolved as https://www.facebook.com/NintendoAmerica and public group germtheory.vs.terraintheory resolved as group with post.

{ "fbUrls": [ "https://www.facebook.com/nintendo", "https://www.facebook.com/NintendoAmerica/posts/pfbid02JESEPSvyiLGjvewuFYhviAwQjTdxZW1ZfnWTeCzxVWgZLT3xgoLHVDwvuenVRyKKl", "https://www.facebook.com/NintendoAmerica/posts/pfbid02AB8FNERMDYwpsgVJVYaEQ8K2vpH4JLzPTvTB71WqiMfNQhu99ZMBmqvKZSt2tqT4l", "https://www.facebook.com/groups/germtheory.vs.terraintheory/permalink/5671657859577842/" ] }

Output example

details stripped since too dirrerent across data. Pattern is url as was provided in input, facebookId calculated by actor from data (more like a suggestion) and typed object with details:

[ { "url": "https://www.facebook.com/nintendo", "facebookId": "119240841493711", "page": { ...details } }, { "url": "https://www.facebook.com/groups/germtheory.vs.terraintheory", "facebookId": "430027810407566", "group": { ...details } }, { "url": "https://www.facebook.com/NintendoAmerica/videos/432168259120897/", "facebookId": "432168259120897", "video_home_www_related_videos_section": { ...details } } ]