Android:如何使用access_token获取Facebook用户图像 [英] Android: How to get facebook user image using access_token
问题描述
我正在使用需要登录Facebook的应用程序
。这是我第一次在我的应用程序中集成Fb API。我从开始使用Facebook SDK for Android开始&成功获取fb access_token
。
在我的申请和申请中有三个 Activitie
我需要管理的是登录用户的Profile Image&当用户使用Facebook成功登录时,所有这些活动的名称 c $ c>
?
我知道,我可以查询fb GraphAPI
&使用access_token获取当前登录用户的完整配置文件数据。我通过使用有效的 access_token
using_
https://graph.facebook.com/me?<access_token>获取用户的个人资料;& format = json
我还需要登录用户的个人资料图片(需要用户的 fb_id
)
http://graph.facebook.com/<fb_id>/picture?type=large
是否可以使用<$ c $获取用户的个人资料图片c> access_token
I am working on an application that need to login with facebook
. This is the first time when i am integrating Fb API in my application. I have start from Getting Started with the Facebook SDK for Android & successfully get fb access_token
.
There are three Activitie
in my application & what i need to manage is to have logged in user's Profile Image & name on all these Activities
when user successfully get login using facebook.
I know, i can query fb GraphAPI
& get complete profile data of current logged-in user using access_token. I succeed to get profile data of user by using valid access_token
using_https://graph.facebook.com/me?<access_token>&format=json
I need the profile image of login user as well(which need user's fb_id
)http://graph.facebook.com/<fb_id>/picture?type=large
Is it possible to get user's profile image using access_token
?
推荐答案
最后,经过长时间的搜索,通过使用 access_token
https://graph.facebook.com/me/picture?access_token=<访问登录用户的图像的方法; your_access_token_here>
感谢@Jess您的宝贵回答!
Finally, after a long search, i got the way to access login user's image by using only access_token
https://graph.facebook.com/me/picture?access_token=<your_access_token_here>
thanks to @Jess for your valuable answer!
这篇关于Android:如何使用access_token获取Facebook用户图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!