Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a facebook photo url always stay the same?

I am getting photos from facebook through graph api with this call:

https://graph.facebook.com/[AlbumID]/photos

The links I get there for the - do they stay the same or do they change?

I am interested because I like to cache these links, but if they get updated, eg the CDN does some updates or reorganisations, then there would be issues. Thanks, Marc

like image 698
Marc Loeb Avatar asked Aug 11 '11 18:08

Marc Loeb


1 Answers

The CDN URLs can change. You are better off caching the graph URL with the respective object ID, for example,

https://graph.facebook.com/98423808305/picture
like image 83
jBit Avatar answered Sep 19 '22 23:09

jBit