繁体   English   中英

在一个电话中获取Facebook用户的详细信息和大型个人资料图片

[英]Get Facebook user's details and big profile picture in one call

我可以接到一个电话/me详细信息,包括pictureemailname
但返回的URL是一个非常小的图片(50px * 50px)。

我知道我可以通过以下方式进行额外调用以获得更大的图像:

.../me/picture?width=999

但是有可能将它与:

https://graph.facebook.com/v2.5/me?fields=id,relationship_status,picture,email,gender,first_name,last_name,significant_other

一个请求 - 响应而不是两个中接收所有这些信息?

干得好:

https://graph.facebook.com/v2.6/me?fields=id,relationship_status,picture.width(999),email,gender,first_name,last_name,significant_other

您可以通过以下方式创建嵌套请求:

https://developers.facebook.com/docs/graph-api/using-graph-api#fieldexpansion

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM