Facebook me/invitable_friends, return link 上小图
Facebook me/invitable_friends, return link on small picture
图片url非应用好友: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 return 更大的图像吗?
或者我可以为非应用好友获取一个普通 ID 吗?
(me/invitable_friends return id 这样 sAVkqWm2Ns53i0og7xtBcGzDkBxJ7sKTO7sUaC_e1A3uDxeTZLyV08E6slPz4H64VeqQA5SpxBtA7un8CQXgZXqHpi_1fEwTKlWd7RVZWrtoILA)
用于使用 http://graph.facebook.com/"ID"/picture?type=large
在 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
me/invitable_friends?fields=picture.width(320).height(320)
图片url非应用好友: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 return 更大的图像吗? 或者我可以为非应用好友获取一个普通 ID 吗?
(me/invitable_friends return id 这样 sAVkqWm2Ns53i0og7xtBcGzDkBxJ7sKTO7sUaC_e1A3uDxeTZLyV08E6slPz4H64VeqQA5SpxBtA7un8CQXgZXqHpi_1fEwTKlWd7RVZWrtoILA)
用于使用 http://graph.facebook.com/"ID"/picture?type=large
在 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
me/invitable_friends?fields=picture.width(320).height(320)