Many of the objects in Facebook—such as Users, Places, Events, Groups, Applications, Photos, and Videos—can have profile pictures associated with them. In the technical sense, these pictures are described as Facebook connections, but at the same time they're also different than other Facebook connections.
There are two ways to obtain the URL of a profile picture for an object—it can either come as a property of an object, obtained by specifying the correct fields when you load an object, or you can use a method in the ActionScript SDK to load different sized thumbnail versions of the profile image.
We need no additional permissions for loading profile images—as long as the current user can load the basic object, they can load the profile image for that object, as it is covered by a different set of permissions from those that govern access to the photo or video connections.
In this recipe, we're going to use the methods that come as part of the ActionScript...