0
當用戶登錄驗證令牌返回時,我已成功創建用Facebook API登錄。但是,我如何從Facebook API獲取用戶詳細信息?我需要對Facebook API做什麼樣的查詢以獲取登錄用戶名等信息?使用Facebook登錄API
當用戶登錄驗證令牌返回時,我已成功創建用Facebook API登錄。但是,我如何從Facebook API獲取用戶詳細信息?我需要對Facebook API做什麼樣的查詢以獲取登錄用戶名等信息?使用Facebook登錄API
只需使用「我」來表示登錄的用戶,使用的access_token訪問像所有允許的資源:
Friends: https://graph.facebook.com/me/friends?access_token=...
News feed: https://graph.facebook.com/me/home?access_token=...
Profile feed (Wall): https://graph.facebook.com/me/feed?access_token=...
Likes: https://graph.facebook.com/me/likes?access_token=...
Movies: https://graph.facebook.com/me/movies?access_token=...
Music: https://graph.facebook.com/me/music?access_token=...
Books: https://graph.facebook.com/me/books?access_token=...
Notes: https://graph.facebook.com/me/notes?access_token=...
Permissions: https://graph.facebook.com/me/permissions?access_token=...
Photo Tags: https://graph.facebook.com/me/photos?access_token=...
Photo Albums: https://graph.facebook.com/me/albums?access_token=...
Video Tags: https://graph.facebook.com/me/videos?access_token=...
Video Uploads: https://graph.facebook.com/me/videos/uploaded?access_token=...
Events: https://graph.facebook.com/me/events?access_token=...
Groups: https://graph.facebook.com/me/groups?access_token=...
Checkins: https://graph.facebook.com/me/checkins?access_token=...
:
https://graph.facebook.com/me?access_token=...
您也可以通過以下訪問所有允許領域完整的信息在這裏:http://developers.facebook.com/docs/reference/api/