I am new to facebook development but have experience with PHP and JavaScript.
I read the SDK documentation and various articles regarding facebook integration, but found that there were still some fundamental questions in my head!
I am trying to achieve the following:
- Create a website that uses facebook only for registration and login.
- Use PHP to store the facebook user ID of registered users in a database on my application server, as well as limited application information for these users. All "general" information (email address, etc.) must be deleted from facebook.
- when a user logs in, he gets a combination of database entries for that user and facebook stuff.
What I have achieved so far:
- I used the registration plugin to display the registration button for unregistered users and the login button for users who log out when they land on the page. I hide the login button using javascript and jquery if the user is already logged in.
- I also have a page that receives a registered user and interprets signed_request, adding the user id to the users table in my database.
Where is my confusion:
- I want to use the Javascript SDK to authenticate users (which is very easy) - this obviously runs asynchronously on the client side.
- , , JS SDK, . AJAX, facebook . , / , - ?
:
, , JS API ?
" ", JS API? , ?
!