Solved

Use JavaScript and php sdk in simultaneous (Facebook API)

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

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 110

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

735 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