facebook iframe php api

i am starting on a php based facebook app.the documentation at facebooks developer page is quite confusing.i have chosen the iframe method for rendering the canvas page. i have made my app in php and is hosted on my server. now the app loads fine in apps.facebook.com canvas. but the thing is I am unable to make API calls work.what i wanted to know is how to transform the xml/JSON data received from the api calls to valid user-readable data. i mean friends.get gives me a bunch of uids. now how to make them appear as valid user profile image thumbnails or links?i am very new to this. so any help would be appreciated. i just need to know how to work with the facebook API.
 
Top