The problem to solve:
- Imagine I have a domain and corresponding web site at
http://my-awesome-site - On this site I have 10,000 pages.
- Each page has a Facebook Like button.
- How do I retrieve the number of likes per page from the Facebook Graph?
It’s possible to look up the total number of likes per URL using a simple GET request (examples: google.com, google.com/reader, news.google.com). But is it possible to get a similar list for an entire domain, broken down by page? Something with results like:
{
"id": "http://my-awesome-site/",
"shares": 12345
},
{
"id": "http://my-awesome-site/page1.html",
"shares": 5678
},
....
{
"id": "http://my-awesome-site/page10000.html",
"shares": 9012
}
You can do this also via facebook graph
seperate ids with commas
the result will be a json, shown below