Use JavaScript and php sdk in simultaneous (Facebook API)

Hi E's, I just want to know if it is possible use JavaScript and php sdk in simultaneous:
The idea is, the user made login in js, and I send via Ajax the id of the FB user to a php file. The php file will use the id of the user to collect the data that I want from the user (name, gender etc), and save to the data base.
That is possible?

The best regards, JC
Pedro ChagasWebmasterAsked:
Who is Participating?
Ray PaseurConnect With a Mentor Commented:
Yes, it's possible.  It's an application development requirement.  Start your learning adventure here:
Pedro ChagasWebmasterAuthor Commented:
Hi Ray, thanks for the answer.
I just have one doubt about that.
When the customer do a login via Facebook using js, they authorize my app to get some information. When I launch php via ajax to collect the rest of user information, I have to authenticate again the user, or I can get the information directly?

Ray PaseurCommented:
I don't know the answer to that.  If it were my application I would set up a simple test and try it out.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.