Settings

Theme

Ask HN: How to find the numerical IDs of posts on Facebook's website?

5 points by zagrebian 8 months ago · 1 comment · 1 min read

Reader

Posts on Facebook’s website can have two types of URLs:

  * with tracking: facebook.com/(user)/posts/(long obfuscated hash)   
  * without tracking: facebook.com/(user)/posts/(short numerical ID)    
Here’s an example of a Facebook URL without tracking:

https://www.facebook.com/savezdodir/posts/1073504858142844/

If you go to https://www.facebook.com/savezdodir/, open that post (it’s the latest post), and then look at the URL, you will not see the numerical ID but an obfuscated hash that contains your information. So if you share that post (e.g. on Twitter) and other people click that link, Facebook will know that you brought them to Facebook.

When I’m viewing a post on Facebook’s website, how do I find that numerical ID? In other words, the non-tracking URL of that post.

zagrebianOP 8 months ago

I found it!

1. view the post on Facebook’s website

2. … menu > Embed

3. copy the link containing the date info (e.g. “6 hours ago”)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection