문제

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