Facebook图形API搜索查询不返回工作字段

时间:2013-06-09 21:59:40

标签: facebook facebook-graph-api

当我使用脸谱图API(使用此链接)进行搜索时,

graph.facebook.com/search?q=chinmay patel&type=user&fields=name,id,username,work, 

它永远不会返回工作。这是我得到的结果,

{
  "data": [
    {
      "name": "Chinmay Patel", 
      "id": "100001500767227", 
      "username": "chinmayrp"
    }, 
    {
      "name": "Chinmay Patel", 
      "id": "100000896291228", 
      "username": "chinmay99"
    }, 
    {
      "name": "Chinmay Patel", 
      "id": "100003158872381", 
      "username": "chinmay.patel.9081"
    }, ..... 
    {
      "name": "Chinmay Patel", 
      "id": "1007030149", 
      "username": "CPoverLord"
    }, 
    {
      "name": "Chinmay Patel", 
      "id": "1150758330", 
      "username": "chinmay.patel.71"
    }, 
    {
      "name": "Chinmay Patel", 
      "id": "100004835978500", 
      "username": "chinmay.patel.90834"
    }
  ], 
  "paging": {
    "next": "https://graph.facebook.com/search?fields=name,id,username,work&q=chinmay patel&type=user&limit=25&offset=25&__after_id=100004835978500"
  }
}

我错过了什么吗?如果您还有其他问题,请与我们联系。

1 个答案:

答案 0 :(得分:2)

work不是公开个人资料字段。用户必须安装您的应用并发出user_work_history权限,或者该用户是安装该应用的用户的朋友,并且已发出friends_work_history

https://developers.facebook.com/docs/reference/api/user/