0
我使用此庫https://code.google.com/p/socialauth-android/使用Google帳戶登錄到我的應用程序。到現在爲止還挺好。我可以獲取用戶名,電子郵件,但獲取用戶個人資料圖片。我認爲,該圖書館使用OpenId + Oauth登錄並致電後:Socialauth android從google獲取個人資料照片
profile.getProfileImageURL()
我收到空。
我可以得到令牌和祕密(的OpenID?)致電:
socialAuthAdapter.getCurrentProvider().getAccessGrant()
For example:
token key : 1/J0_R-D03mykbqHnnNrVV1lk9FH2j996G05O2WVcHTrQ
token secret : vnh25rzUBVJKjHNpT_USeyjK
,但我不能用這個通過鏈接來獲取用戶個人資料網址:https://www.googleapis.com/oauth2/v1/userinfo
你能不能給我任何提示,如何使用我從這個庫得到的圖片url?
我oauth_consumer.properties:
www.google.com.consumer_key = xxxxx.com
www.google.com.consumer_secret = xxxxxxxxxx
www.google.com.custom_permissions = https://www.googleapis.com/auth/userinfo.profile