我的Android应用程序使用Parse作为后端,我已经集成了Facebook登录。所以现在,我得到了用户名和脸书个人资料ID,因为这是我所需要的。 为了获取他的个人资料图片我使用这些简单的线条:问题同时试图获取Android的用户的Facebook个人资料图片
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
:/ 感谢的!