gpt4 book ai didi

ios - Facebook 个人资料图片大

转载 作者:可可西里 更新时间:2023-11-01 03:22:07 25 4
gpt4 key购买 nike

我在尝试请求 Facebook 上的用户个人资料图片的大版本时遇到问题。在我正在做的图形路径中:

NSString *requestPath = @"me/?fields=first_name,last_name,gender,email,birthday,verified,picture";

那里的图片字段只给我个人资料图片的小版本,但我需要大版本和普通版本..我已经尝试将图片更改为 picture_large、pic_large、image_large 但这些都不起作用..

拜托,我已经阅读了文档,所以如果您打算让我再读一遍,请不要费心回答。我在这里问这个问题是因为我已经到处搜索但找不到解决方案。

谢谢,牛顿

最佳答案

您正在寻找的简短答案是 picture.type(large)

我一直在寻找同样的东西,并使用 Facebook Graph API 资源管理器找到了答案 here .

现在如果我使用下面的代码:

[FBRequestConnection startWithGraphPath:@"me"
parameters:[NSDictionary dictionaryWithObject:@"picture.type(large),id,email,name,username"
forKey:@"fields"]
HTTPMethod:@"GET"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error){[self fbRequestCompleted:result];}];

“result”字典中的“picture”键值为大图的URL。

关于ios - Facebook 个人资料图片大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10882835/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com