Solved

Use JavaScript and php sdk in simultaneous (Facebook API)

Posted on 2013-05-15
3
352 Views
Last Modified: 2013-05-20
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
0
Comment
Question by:Pedro Chagas
  • 2
3 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39167864
Yes, it's possible.  It's an application development requirement.  Start your learning adventure here:
https://developers.facebook.com/docs/guides/web/
0
 
LVL 3

Author Comment

by:Pedro Chagas
ID: 39170833
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
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39171415
I don't know the answer to that.  If it were my application I would set up a simple test and try it out.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now