I require a very simple but effective login/account processing script that utilizes Facebook as the login method. This should be a very simple project for someone that is familiar with Facebook API with php.
Please note, I only require the code and not design. I can then simply insert the code you provide into my design. If however you wish to provide a sample design to assist your development this is okay but will not be paid for. In short, the code should do the following:
1a) If the user is not logged in, display a button for the user to click to login
1b) Utilize the facebook login system to log the user in
1c) If the user IS logged in display a welcome message such as "Welcome back, [username]" and a logout button
1d) The logout button must log the user out of facebook and in turn, revert back to displaying the Login to face button
2a) Once a user has been authenticated and logged in their user information should be stored in array for future use around the website. This should be available in the following format:
and so on with all of the available information.
Here is an example -
a users name is: Bob. A users email is: blah . A users facebook link is: [url removed, login to view]
The following would then be usable throughout the website:
echo $user['name'] would return: 'Bob'
echo $user['email'] would return: 'blah'
echo $user['facebook_link'] would return: '[url removed, login to view]'
Finally, all instances of the $user[''] array must be available throughout the entire site.
**LOWER BIDS WILL TAKE PRIORITY OVER HIGHER ONES**
PLEASE ONLY BID IF YOU:
a) Please good english
b) Can start work soon
Thank you and good luck!