Avatar of Pedro Chagas
Pedro ChagasFlag for Portugal

asked on 

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
JavaScriptPHPAJAX

Avatar of undefined
Last Comment
Ray Paseur
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Pedro Chagas
Pedro Chagas
Flag of Portugal image

ASKER

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?

~JC
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

I don't know the answer to that.  If it were my application I would set up a simple test and try it out.
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo