使用网址获取大型Facebook个人资料图片

时间:2015-04-05 01:07:41

标签: ios facebook url

所以我试图使用网址获取大型Facebook个人资料图片。使用此网址时

https://graph.facebook.com/v2.3/10153207714499645/picture?access_token=<access token>

我得到一张50x50的图片。但是,当我添加变量?type=large时,我得到了

{
   "error": {
      "message": "(#100) type must be one of the following values: small, normal, album, large, square",
      "type": "OAuthException",
      "code": 100
   }
}

我的网址看起来像这样

https://graph.facebook.com/v2.3/10153207714499645/picture?type=large?access_token=<access token>

1 个答案:

答案 0 :(得分:4)

您应该在参数之间使用&而不是?

https://graph.facebook.com/v2.3/10153207714499645/picture?type=large&access_token=<access token>