Do you need to find out the ID for a Facebook page?
Here is a ONE step method to find out the ID for a certain Fan Page on Facebook.
Let’s suppose we want to find out the ID for the Coca Cola fan page. The links is: http://www.facebook.com/cocacola
We simply go to https://graph.facebook.com/cocacola
The output will be something like this:
{
“id”: “40796308305”,
“name”: “Coca-Cola”,
“picture”: “http://profile.ak.fbcdn.net/hprofile-ak-snc4/276879_40796308305_1578420141_s.jpg”,
“link”: “http://www.facebook.com/coca-cola”,
“likes”: 36404592,
“category”: “Food/beverages”,
“website”: “http://www.coca-cola.com”,
“username”: “coca-cola”,
“founded”: “1886”,
“description”: “\nOn May 8, 2011, Coca-Cola marks its 125th anniversary. Created in 1886 in Atlanta, Georgia, by Dr. John S. Pemberton, Coca-Cola was first offered as a fountain beverage at Jacob’s Pharmacy by mixing Coca-Cola syrup with carbonated water. \n\nCoca-Cola was patented in 1887, registered as a trademark in 1893 and by 1895 it was being sold in every state and territory in the United States. In 1899, The Coca-Cola Company began franchised bottling operations in the United States. \n\nCoca-Cola might owe its origins to the United States, but its popularity has made it truly universal. Today, you can find Coca-Cola in virtually every part of the world.”,
“location”: {
“latitude”: 42.00736,
“longitude”: -72.521224
},
“can_post”: true,
“checkins”: 77,
“talking_about_count”: 182208
}
Why did I need that?
I was looking for a way to to retrieve the wall posts for a specific fan page. In order to do that I found out this link:
http://www.facebook.com/feeds/page.php?id=40796308305&format=json
You can change that ID as you desire. Also the format can be: atom10, json or rss20. I don’t know if any other is available.
Leave a comment