Solved

Use JavaScript and php sdk in simultaneous (Facebook API)

Posted on 2013-05-15
3
354 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 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