簡體   English   中英

訪問google +用戶個人資料照片

[英]Access google+ user profile photo

我正在嘗試獲取用戶的g +個人資料照片。 在javascript中,我將數據范圍設置如下:

data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.image"

但是,“ https://www.googleapis.com/auth/userinfo.image ”是無效的范圍。

實際上,您實際上不需要userinfo.profileplus.login包含從用戶的個人資料(包括其圖片)中獲取所有公共信息的權限。 只需替換userinfo.image

Google+的所有范圍都記錄在這里: https : //developers.google.com/+/api/oauth

跟隨鏈接

使用Resource image.url,您將得到答案

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM