質問

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