在Facebook Open Graph v2.0中,非应用用户的图片是否仍然可用?

问题描述:

在Graph API v1.0中,我可以通过以下调用graph获取任何用户的个人资料图片。facebook.com/{uid}/picture( fb doc )。

In Graph API v1.0, I could get the profile picture of any user with the following call graph.facebook.com/{uid}/picture (fb doc).

Graph API v2.0 facebook表示将返回(a)应用程序用户的应用程序用户ID,(b)非应用程序用户的临时令牌(通过/ me / taggable_friends和/ me / invitable_friends api调用)。基于此,我将假定在v2.0中不推荐使用图片API调用。但是,该文档似乎在v2.0中看起来并没有改变这个调用。

In Graph API v2.0 facebook says it will return (a) app-scoped user ids for app users, and (b) temporary tokens for non-app users (through /me/taggable_friends and /me/invitable_friends api calls). Based on this, I would assume that the picture api call is deprecated in v2.0. However, the documentation makes it seem like there was not change to this call in v2.0.

有人知道非应用用户的(全尺寸)公开个人资料照片将在v2.0中可用吗?

Anybody knows if (full-size) public profile pictures of non-app users will be available in v2.0?

仍然可以在v2.0中获取一个人的个人资料图片。

It is still possible to get a person's profile picture in v2.0.

http://graph.facebook.com/v2.0/APP_SCOPED_ID/picture 将重定向到由该应用范围的ID表示的用户的图片

http://graph.facebook.com/v2.0/APP_SCOPED_ID/picture will redirect to a picture of the user represented by that app-scoped ID.

如果用户以前登录过您的应用程序是针对v1.0进行编码的,则用户的原始Facebook用户ID仍可能会被应用程序所知。因此, http://graph.facebook.com/v2.0/ORIGINAL_USER_ID/picture 仍然可以正常工作。

If a user previously logged into your app when your app was coded against v1.0, they may still be known to your app by their original Facebook user ID. For this reason, http://graph.facebook.com/v2.0/ORIGINAL_USER_ID/picture will also still work.