对于我使用Parse作为后端的Android应用程序,我已经整合了facebook登录。所以现在,我得到用户的名字和脸谱资料ID,因为它是我所需要的。 为了检索他的个人资料图片我使用这些简单的行:
Long hash = mUser.getLong(ParseConstants.KEY_FACEBOOK_ID);
String gravatarUrl = "https://graph.facebook.com/" + hash +
"/picture?width=120&height=120";
Picasso.with(getBaseContext())
.load(gravatarUrl)
.placeholder(R.color.focused_green_button)
.into(imgSingle);
当我测试应用程序时,它适用于3个Facebook帐户,但现在我在谷歌播放中发送测试版的应用程序,它总是返回一个问号。 我也不明白为什么同一个网址对某些个人资料有效,而对其他个人无效。 作为一个例子,这个工作,我可以看到个人资料图片:
https://graph.facebook.com/868281133254730/picture?width=120&height=120
而且这个没有:
https://graph.facebook.com/10207266268160228/picture?width=120&height=120
:/ 感谢'!小号
答案 0 :(得分:0)