Search code examples
iphonefacebookprofileimagefbconnect

FBConnect on iPhone. question about the profile image


Im developoing an app for the iPhone where users can chat using their facebook account info. in this case: the facebook username & profile image. my question is How can I share the users profile picture in the chat box so that people can see each others avatars?

the pictures must be online somewhere? how to get to that url?

I should do somthing like this when the send button is tapped:

get the username, get the msg, get the the avatar url. send the info to the chat server.

alt text http://img98.imageshack.us/img98/5103/screenshotrci.png


Solution

  • first get the album name by using FBconnect.photos.getAlbum and pass UID. it will return an array with all album info .then find the album name " profile pictures" and their album id. after that use this album id to get the profile photo .

    using this api FBConnect.photos.get and pass album id as params