Marc Loeb
Marc Loeb

Reputation: 555

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

Upvotes: 5

Views: 1798

Answers (1)

jBit
jBit

Reputation: 2981

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

Upvotes: 6

Related Questions