facebook api:如何获取用户ID上传的照片

时间:2015-07-31 13:44:06

标签: facebook-graph-api

有facebook用户网址https://www.facebook.com/adikks

如果我在脸书中被骗了。我可以查看公开的帖子和图片

他的用户ID(来自http://findmyfbid.com)= 100000041026824

现在我想查看用户上传的图片,可以使用facebook api通过plublic查看。我试过了

https://graph.facebook.com/100000041026824/photos?type=uploaded&fields=name,source&limit=50&access_token=XXXXXX

我也试过

https://graph.facebook.com/100000041026824/photos?type=uploaded&access_token=XXXXXX

两者都给出了

{
   "data": [

   ]
}

我甚至在图api资源管理器中试过这个:

https://graph.facebook.com/v2.4/100000041026824/photos?type=uploaded

它显示相同的

{
   "data": [

   ]
}

相反,我为一页写道:

link =" https://www.facebook.com/HailHimalayas", id = 381200698651805

现在我想查看页面上传并由公众查看的图片

我试过

https://graph.facebook.com/381200698651805/photos?type=uploaded&fields=name,source&limit=50&access_token=XXXXXX

It gives:

{
   "data": [
      {
         "name": "IN EVERY WALK INTO THE NATURE, ONE RECEIVES FAR MORE THEN HE SEEKS..!!\n\nHail Himalayas - Responsible Eco Tourism",
         "source": "https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xfp1/t31.0-8/s720x720/10987450_723146627790542_4281069196911932678_o.jpg",
         "created_time": "2015-07-31T06:00:20+0000",
         "id": "723146627790542"
      },
      {
         "source": "https://scontent.xx.fbcdn.net/hphotos-xft1/t31.0-8/s720x720/11731578_722471167858088_6058874620639883829_o.jpg",
         "created_time": "2015-07-29T12:08:08+0000",
         "id": "722471167858088"
      },
      {
         "source": "https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xfa1/t31.0-8/q88/s720x720/11741148_722471134524758_420698345443715826_o.jpg",
         "created_time": "2015-07-29T12:08:08+0000",
         "id": "722471134524758"
      },
.
.
.
.
.

为什么在使用facebook api显示页面图片时不会显示用户图片。

0 个答案:

没有答案