How to use Facebook jsdk? -


i want know best way save informations user in database.

with code informations:

 fb.api({      method: 'fql.query',      query: 'select first_name, last_name, sex, pic user uid=me()'  }, function (response) {     // save informations  }); 

but now, how can put these informations in database ?

is ajax best way ?

or have use php sdk in case ?

but now, how can put these informations in database ?

in lines commented "save informations", ajax data webserver.

is ajax best way ?

yes, ajax best way data instantly server once fb.api call has completed.

or have use php sdk in case ?

no, in case code running client-side. why duplicate server-side too? no need. remember, less things server has (because off-load of client) better server's performance , lower cost maintain server.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -