views:

24

answers:

1

I'm loading profile pictures from Facebook, cache them on disk and load them into cells of a UITableView.

Now I'm wondering, how I can find out when someone has changed his/her profile picture on Facebook that I have to load the new image from the web instead of using the one cached disk.

The url of the image is always the same. Is there a lightweight way of doing this without downloading the image and comparing it to the local file?

A: 

From my checking, the facebook profile url will change whenever the user changes his profile image. You can check it yourself, but there is no documentation for it. Use it with your own risk:)

vodkhang
The url of the actual images changes, but not the url I request the image with.It's always https://graph.facebook.com/<user_id>/picture
znq
oh, that's what makes difference. I used FQL to get the profile url first and then get the real image :(. I will try to take a look in graph api
vodkhang
I didn't try with graph API for iphone but from my observation in web browser, when I typed: https://graph.facebook.com/vodkhang/picture . It redirects me to a page that contains my image and that link change when the image change. So, what is the response when you send the rest request: https://graph.facebook.com/vodkhang . Will it return you some link or directly respond you with the image?
vodkhang