0

我用这种方法得到的图像非常小

[facebook requestWithGraphPath:@"me/friends" 
                     andParams:[ NSDictionary dictionaryWithObjectsAndKeys:@"picture,id,name,link,gender,last_name,first_name",@"fields",nil]
                           andDelegate:self];

如何用相同的方法获取朋友的大图?

提前致谢

4

2 回答 2

3

每个图像的 URL 作为字符串返回。您可以通过将文件名中的最后一个字母从“q”更改为“n”来修改字符串,在从 facebook 加载它之后并以任何其他方式使用它之前。

small image:         370412_xxxxxxxx_1715222999_q.jpg
medium/square image: 370412_xxxxxxxx_1715222999_s.jpg
large image:         370412_xxxxxxxx_1715222999_n.jpg

看起来像这样:

pictureUrl = [pictureUrl stringByReplacingOccurrencesOfString:@"_q.jpg"
                                     withString:@"_n.jpg"];
于 2012-04-19T15:56:15.463 回答
0

使用albumsphotos权限(大小取决于上传时间)

请参阅此链接http://developers.facebook.com/docs/reference/api/album/

于 2012-04-19T11:31:30.373 回答