我有以下代码可以成功地从登录用户中检索用户照片:
// Facebook Login Result
override fun onSuccess(result: LoginResult?) {
val facebookID = result?.accessToken?.userId
if (facebookID != null) {
val userPhotos = GraphRequest.newGraphPathRequest(
result.accessToken,
"/${result.accessToken.userId}/photos"
) { response ->
Log.d(TAG, response.toString())
}.executeAsync()
}
}
response
成功登录:
{Response: responseCode: 200, graphObject: {"data":[{"created_time":"2013-06-30T10:30:56+0000","id":"427870987001201"},...
我的问题是-如何从该图像ID Bitmap
获取427870987001201
(以便可以将其上传到我的Google Cloud Storage)?