从Facebook图像ID获取位图

时间:2019-06-01 02:58:36

标签: android facebook kotlin facebook-android-sdk

我有以下代码可以成功地从登录用户中检索用户照片:

// 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)?

0 个答案:

没有答案