Normally, you would first call their “me/friends” API call using network.request(). This will return you a JSON structure that you can easily turn into a lua table with:
local friends = json.decode(event.response)
In that friends table will be a member called photo. It will either be a string, which is the URL to the image on Facebook’s servers. It can also be a table and that table has a member called “url” which is the URL. I’ve not figured out the rhyme or reason to why Its one way sometimes and the other way others.
Anyway, once you have the URL, you can use network.download() or display.loadRemoteImage() to fetch the image to your local cache storage and then display it using regular techniques.
Edit: Forgot to add, the ID of the user is also a member of that table returned by the me/friends request.
[import]uid: 19626 topic_id: 31989 reply_id: 127579[/import]