如何获取用户个人资料图片? [英] how to get user profile picture?

查看:93
本文介绍了如何获取用户个人资料图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获取用户个人资料如id,link,name没有问题。

there is no problem with getting user profile like id, link, name.

但是当我尝试获取个人资料图片时,它会向我返回null。

but when i try to get the profile picture, it returns null to me.

我使用以下方法请求个人资料图片:

I request the profile picture with following method:

https://apis.live.net/v5.0/me/picture?access_token=MY_ACCESS_TOKEN

有什么问题?

推荐答案


获取用户个人资料(如ID,链接,姓名)没有问题。

there is no problem with getting user profile like id, link, name.

但是当我尝试获取个人资料图片时,它会向我返回null。

but when i try to get the profile picture, it returns null to me.

我使用以下方法请求个人资料照片:

I request the profile picture with following method:

https://apis.live.net/v5.0/me/picture?access_token=MY_ACCESS_TOKEN

有什么问题?


我刚刚确认这是通过转到http:// beta来实现的。 isdk.dev.live.com。您能否确认您有个人资料照片,并且HTTP响应中不包含JSON对象中图片的URL? 

I just confirmed that this works by going to http://beta.isdk.dev.live.com. Can you confirm that you have a profile picture and that the HTTP response does not contain the URL to the picture in a JSON object? 


这篇关于如何获取用户个人资料图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆