使用 Facebook Graph API 全面了解搜索结果
在 Facebook Graph API 中,我试图在搜索结果中获取每个用户的整体情况。以下调用将为我提供每个用户的小图片:
通过添加 type=large 参数,可以轻松获取单个用户的整体情况。但搜索时这似乎被忽略(可能是因为已经有一个“类型”参数用于过滤搜索结果)。 有什么办法可以使用 Graph API 来做到这一点吗?
谢谢!
In Facebook Graph API, I'm trying to get the large picture of each user in a search result. The following call will give me the small picture of each user:
It's rather easy to get the large picture for a single user, by adding the type=large parameter. But that seems to be ignored when searching (probably since there's already a 'type' parameter used to filter the search results).
Is there any way I can do it with Graph API?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的方法是预先获取所有带有大图片和方形图片的用户,以便我可以选择使用其中任何一个。据我所知,您无法使用 Graph API 执行此操作,因为 Graph API 是预定义的以呈现特定的输出。
如果您需要更多这方面的信息,请告诉我。
My approach was to pre-fetch all users with the large and square pictures so that I can choose to use either. As far as I know, you cannot do this with the Graph API because the Graph API is pre-defined to present a specific output.
Let me know if you need more information around this.