JoshDG
JoshDG

Reputation: 3931

Javascript Facebook API: Caching User Data

Is there a way I can cache user info on the clients system? For example, if I had a list of all of the users friends..via fql...is there a way to save that somewhere so that I don't have to request it on every use of the app?

I apologize if I've used incorrect terminology I'm an amateur programmer.

Upvotes: 0

Views: 321

Answers (2)

Juicy Scripter
Juicy Scripter

Reputation: 25918

Aside of HTML5 local storage (as suggested by DCMS in other answer) there is also SQLite support in WebKit browsers and userData in older versions of Internet Explorer.

You can use something like jStorage (it have support for jQuery, Prototye and MooTools) to support client-side storage in most browsers.

Upvotes: 1

DMCS
DMCS

Reputation: 31870

yes, you can use one of the new HTML5 features

You can also check to see if the broswer doesn't have that available, and use a server-side caching mechanism to your advantage such as memcached or application variables.

Upvotes: 2

Related Questions