Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7432333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:26:28+00:00 2026-05-29T09:26:28+00:00

Is there a simple, reliable and potentially future-proof way to extract a graph ID

  • 0

Is there a simple, reliable and potentially future-proof way to extract a graph ID from the API given any facebook URL? By “any facebook URL” I mean the URL for a personal profile, page, group, etc. All these things have various formats so I imagine there must be something in the graph API to definitively convert a facebook URL into an ID, right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:26:29+00:00Added an answer on May 29, 2026 at 9:26 am

    No, there isn’t a way to do this simply within the API. You will need a set of pattern matching to match the various types of urls to extract either the id (album,note,photo,status) or username.

    For example

    Photos

    • facebook.com/photo.php?fbid=10100213582161431&set=p.10100213582161431&type=1&theater
    • https://graph.facebook.com/10100213582161431

    Posts

    • facebook.com/zuck/posts/10100210345757211
    • https://graph.facebook.com/10100210345757211

    Pages

    • facebook.com/pages/Joel-Spolsky/106083232757300
    • graph.facebook.com/106083232757300

    Videos

    • facebook.com/video/video.php?v=10150398154330484
    • graph.facebook.com/0150398154330484

    Events

    • facebook.com/events/138745136241434/
    • etc …

    Then it gets further complicated that even if you were able to get a silver bullet function that handles all these links your app would need to grant access to numerous permissions in order to access certain objects.

    You may be able to get away with most links that have the id at the end but not all. So you can maybe use a regular expression catching links that end in numeric characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a simple and reliable way to determine the URL of the currently-executing
Is there any reliable and simple priority queue (linked list preferred, not necessary) implementation
Is there any simple way to programatically colorize images in .NET? Basically we have
Is there a simple way of getting a HTML textarea and an input type=text
Is there a simple way to cache MySQL queries in PHP or failing that,
Is there a simple way in .NET to quickly get the current protocol, host,
Is there any simple algorithm to determine the likeliness of 2 names representing the
[continued from Is there a way to tell whether two COM interface references point
Is there a reliable, cross-platform way to do IPC (between two JVMs running on
I'm trying to find if there is a reliable way (using SQLite ) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.