Can any body tell me how to get the photo Like Info from graph explorer?I tried this fql query

select like_info from photo where object_id=PHOTO ID

Using this query This photo Id-10152460216420695 gives me result

{
"data": [
  {
    "like_info": {
    "can_like": true,
    "like_count": 2118,
    "user_likes": false
   }
  }
 ]
}

But this photo Id-551468638224054 gives me result

{
 "data": [
   ]
}

This two photo are the public and both have more than 1 like.So why the last one can not give me the right result?Waiting for your help...

有帮助吗?

解决方案

You can use :

select like_info from photo where object_id="PHOTO ID"

If it fails than it means The photo is invisible for graph api.

其他提示

One of those photos may not be available via the API due to privacy settings. Even though a photo is public on Facebook itself, there may be other reasons why the piece of content isn't emitted via the API.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top