0
我被困在如何从这个请求响应中检索配置文件图片。该代码在GraphAPI文档中提供。Facebook Profile Pic(Facebook Android SDK)
Session session = ParseFacebookUtils.getSession();
/* make the API call */
new Request(
session,
"/me/picture",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
}
}
).executeAsync();
我应该怎么做才能从响应中检索图片?
我不完全相信你需要使用图形API来检索资料图片给用户。一旦你有用户ID,应该可以使用url http://graph.facebook.com/123/picture,其中123是用户ID或用户名,以加载个人资料图片。如果你想使用Graph API,你可能需要使用_fields_参数,例如http://graph.facebook.com/123?fields=picture。 – harism