In Progress

PHP Login and register with Facebook and twitter (Oauth)

Hi all,

i need to integrate Login and Register process using Facebook and Twitter.

The result need to be the same than But there are a lot of examples...

I will include my current code, which is able to login / register writing / reading from a table in a MySQL database.

Code es very simple and easy to understand.

I also will include the create script of my table 'users'.

Data access is made with PDO.

Explanation of the code:

- First, you go to [url removed, login to view] page to register a new user. Fill the form and press 'Register'. It inserts a new user row in the table 'users'

- Second, the user login. Fill username / password and press Login. Then, the page stores username and sh1(password) in the cookies and session

- When the user comes back again, the page reads the cookie and try to login automatically.

The goal of the project is to modify the table 'users' with new fields related to facebook / twitter authentication and modify some parts of the code to make all working.

I think that this link is a good starting point:

[url removed, login to view] (slash) blog (slash) login-with-facebook-and-twitter

I want a proffesional work, with reliable code, etc.

Also if you found some security hole, please solve it. I will pay you more money if you found some improvement to make in my code.

Also, if i have to register in facebook, twitter, something like apikey, or register application, you will have to explain me the process.

To make the code running in your computer, you have to change the following:

- root .htaccess file:

php_value include_path ".;C:/Inetpub/htdocs/sopping/2/config"

set the path in your pc of the config folder. This is because in my code i write - include "[url removed, login to view]" - that is located in this directory

- /config/[url removed, login to view]

Define the following global variables:

// Root path of the files

define ('ROOT', $_SERVER['DOCUMENT_ROOT'].'/sopping/2');

// Root url path of the page. For example, in my computer is http://localhost:8080/sopping/2/public.

define ('PUBLIC_URL', '/sopping/2/public');

- /lib/dal/[url removed, login to view]

Set database access parameters:

DEFINE ('DB_USER', 'root');


DEFINE ('DB_HOST', 'server_name');

DEFINE ('DB_NAME', 'database_name');

Skills: Facebook Marketing, MySQL, PHP, Twitter

See more: php facebook twitter login, php facebook twitter oauth, register using facebook twitter, twitter php mysql login, login facebook twitter php, write proffesional blog, with explanation, reliable parts, php code register, parts database access, make money writing code, login php code mysql, want register blog, define application security, facebook twitter login, pinterest facebook login, php oauth example, global computer, php pdo, php login, pdo, oauth, login php, integrate facebook twitter, facebook twitter pinterest

About the Employer:
( 7 reviews ) BINEFAR, Spain

Project ID: #4296957

Awarded to:


Hellos Sir, I am ready to start. Thanks

€8 EUR / hour
(8 Reviews)

8 freelancers are bidding on average €9/hour for this job


hi. your task is very simple for me. pls tell me your site ftp info. then i will work immediately for fb, twitter login/register. thx.

€10 EUR / hour
(57 Reviews)

Hello, PHP/MYSQL expert here with 1+year of experience in web development, I had worked on both twitter and facebook APIS and I think I am the right option to work on this project Please contact me if interested More

€8 EUR / hour
(50 Reviews)

Hi i am a PHP Dev. i have exp. in FB SDK & Twitter SDK i can work on this Project

€8 EUR / hour
(4 Reviews)

I am experienced in PHP/Mysql , JS website development, please check pm for my work links.

€8 EUR / hour
(1 Review)

I can do this work we havea good team of PHP

€12 EUR / hour
(2 Reviews)

BelTechnology is team of uniquely competent, professional and innovative software professionals providing full featured web services including B2B & B2C solutions which also acts as an offshore development center for o More

€10 EUR / hour
(0 Reviews)

Kindly check our personal message.

€10 EUR / hour
(0 Reviews)

Please have a look

€10 EUR / hour
(0 Reviews)