透過 Open Graph:
$ curl https://graph.facebook.com/?ids=http://blog.changyy.org/ | python -mjson.tool
{
"http://blog.changyy.org/": {
"id": "http://blog.changyy.org/",
"shares": 2
}
}
透過 FQL: SELECT url,id,site FROM object_url WHERE url = 'http://blog.changyy.org'
$ curl http://graph.facebook.com/fql?q=SELECT%20url,id,site%20FROM%20object_url%20WHERE%20url%20=%20%27http://blog.changyy.org%27 | python -mjson.tool
{
"data": [
{
"id": 597172713656917,
"site": "blog.changyy.org",
"url": "http://blog.changyy.org"
}
]
}
沒有留言:
張貼留言