我正在使用js-SDK,在用户使用FB登录后,我想请求电子邮件、名字、姓氏和图片(图片链接)。
FB.api('/me?fields=email,first_name,last_name',
(graph_response) ->
...
)
这也可以,但我得到的图片是超小的(如果我要求的话,也是一样的)
type=square
在
/me/picture
):
FB.api('/me?fields=email,first_name,last_name,picture',
(graph_response) ->
...
)
FB.api('/me/picture?type=large&redirect=false',
(graph_response) ->
...
)
有没有一种方法可以在一个请求中将两者结合起来?我试过了
/me?fields=email,first_name,last_name,picture&type=large
运气不好。