Facebook me / invitable_friends,返回小图片上的链接

时间:2015-01-15 12:08:19

标签: facebook facebook-graph-api

不是app朋友的图片网址:https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xpf1/v/t1.0-1/c0.3.631.631/s50x50/1796710_1380751512198760_2043305802_n.jpg?oh=7e5cde9326c5bedd0416bf091b198b75&oe=55247955&__gda__=1433029165_feddf79888157b002c65970ea505c266 图片大小为50x50,

我可以以某种方式获得比picture.data.url中返回的API更大的图像吗? 或者我可以获得不是app朋友的正常ID吗?

(me / invitable_friends返回id如sAVkqWm2Ns53i0og7xtBcGzDkBxJ7sKTO7sUaC_e1A3uDxeTZLyV08E6slPz4H64VeqQA5SpxBtA7un8CQXgZXqHpi_1fEwTKlWd7RVZWrtoILA)

使用http://graph.facebook.com/"ID"/picture?type=large

2 个答案:

答案 0 :(得分:2)

我/ invitable_friends?字段= picture.width(320).height(320)

答案 1 :(得分:0)

在iPhone上你可以这样做

[FBRequestConnection startWithGraphPath:@"/me/taggable_friends"
                             parameters:@{@"fields" : @"name,picture.width(500).height(500)"}
                             HTTPMethod:@"GET"
                      completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
                  /* handle the result */
                  /* returns a list of friends with links to bigger pictures */
                      }];

密钥有parameters