Facebook graph api 如何使用Flask从FB检索个人资料图片?

Facebook graph api 如何使用Flask从FB检索个人资料图片?,facebook-graph-api,oauth,flask,Facebook Graph Api,Oauth,Flask,我已经设法从用户那里获得了所有的基本信息,但我不知道如何检索他/她的个人资料图片 me = facebook.get('/me?fields=id,name,first_name,last_name,age_range,link,gender,locale,timezone,updated_time,verified,friends,email') 你能提供一些提示吗?我正在使用Python Flask和OAuth。对于OAtuh和Facebook Graph,您可以使用它,就像您看到的这段代

我已经设法从用户那里获得了所有的基本信息,但我不知道如何检索他/她的个人资料图片

me = facebook.get('/me?fields=id,name,first_name,last_name,age_range,link,gender,locale,timezone,updated_time,verified,friends,email')

你能提供一些提示吗?我正在使用Python Flask和OAuth。

对于OAtuh和Facebook Graph,您可以使用它,就像您看到的这段代码是基于C的,但您只需要检查请求URL:

request = WebRequest.Create("https://graph.facebook.com/v2.3/me/picture?access_token=" + Uri.EscapeDataString(authorization.AccessToken));

using (var response = request.GetResponse())
{
  myImageBoxOrSomethingThatAcceptUrl.PictureUrl = response.ResponseUri.AbsoluteUri;
}

使用OAtuh和Facebook Graph,您可以使用此代码,就像您看到的代码是基于C的,但您只需检查请求URL:

request = WebRequest.Create("https://graph.facebook.com/v2.3/me/picture?access_token=" + Uri.EscapeDataString(authorization.AccessToken));

using (var response = request.GetResponse())
{
  myImageBoxOrSomethingThatAcceptUrl.PictureUrl = response.ResponseUri.AbsoluteUri;
}

尝试将“图片”添加到参数列表中

尝试将“图片”添加到参数列表中