Images of app users..

Jul 23, 2007 at 3:18 PM

when my users are posting comments I want to have a small image of the user next to the comment which I can obviously get when they are in session and store the url but is it ok to store this url in terms of the Facebook Development terms? Is there another way to implement this?

Thanks in advance

Jul 24, 2007 at 2:59 AM
Is this in FBML?

If it's in FBML, you can just use <fb:photo uid=ID OF THE FRIEND> and FB will take care of rendering the correct image for you. This is probably the best way to do it.

Alternatively, if you're using an iframe, you'd need to pull down the user photo each time using the API or FQL.
Jul 24, 2007 at 10:12 PM
Are you asking if it is "allowed" for you to store the url? Or are you asking if the url will remain constant?

I think it is allowed, but I do think you run the risk of having them swap the urls out from under you. As MrBlue states, with FBML you can use the fb:photo. Otherwise, it is safer for you to use the user.Photo property that we return that contains the actual bytes of the image for that user.