Question

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...

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top