0

当我使用 facebook graph 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"
  }
}

我错过了什么吗?如果您还有其他问题,请告诉我。

4

1 回答 1

2

work不是公共个人资料字段。用户必须安装了您的应用程序并且您发布user_work_history了权限,或者该用户是安装该应用程序并被friends_work_history发布的用户的朋友。

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

于 2013-06-09T23:16:53.243 回答