如何获得用户感兴趣的类别Facebook Graph API?

时间:2013-04-16 07:53:22

标签: ios facebook-graph-api

我正在使用Facebook Graph API

FBGraphApi: https://graph.facebook.com/me/likes?access_token=AAAC8i7Jj25kBALQ....

并得到以下回复:

{   "data": [
  {
     "category": "Media/news/publishing",
     "category_list": [
        {
           "id": "191684877517919",
           "name": "Publisher"
        },
        {
           "id": "108366235907857",
           "name": "Newspaper"
        }
     ],
     "name": "YTPO.Ru",
     "id": "157031727688210",
     "created_time": "2013-04-09T16:09:44+0000"
  },,
  {
     "category": "Education website",
     "name": "Afla.md",
     "id": "243281895771734",
     "created_time": "2012-09-15T13:20:03+0000"
  },
  {
     "category": "Website",
     "name": "Forbes Russia",
     "id": "315590990710",
     "created_time": "2012-08-01T20:25:18+0000"
  },
  {
     "category": "Non-governmental organization (ngo)",
     "name": "Alliance Fran\u00e7aise de Moldavie",
     "id": "177432232301977",
     "created_time": "2012-02-23T16:10:17+0000"
  }   ],

我需要用户感兴趣的类别。如何使用其他语言获取此类别,例如法语或德语?

1 个答案:

答案 0 :(得分:0)

如果我们最后添加https://graph.facebook.com/me/likes?access_token=AAAC8i7Jj25kBALQ......&locale=fr,那么数据就会出现在法国