Facebook In PHP With Source Code

Project: Facebook Web Application

– To download it for free (scroll down)

Features:

  1. Login/Sign up
  2. Validations
  3. Post Status/Comments/Photos
  4. Group Chat
  5. Edit Profile
  6. Search for people
  7. Security Question
  8. Password Recovery

 

This is a web application project implemented in PHP. Programming Languages used in this project are HTML, CSS, PHP, JavaScript, AJAX. Just like the “Facebook” we use, this project is almost the same. Here, the user can post as well as like photos, status, comments. The user’s timeline is displayed same as the original one. Users can also join group chat and start chatting with each other, edit profile which includes: Work and education, Location, Relationships, Date of birth and Contact information. Profile pictures and cover photo can be changed easily and the password can also be recovered just like the real one.
System Resolution 1366×768 must be set!

https://www.youtube.com/watch?v=4JB9qAkgJMw

How To Run?

You’ll need XAMP Server or WAMP Server. Put the file inside “c:/wamp/www/” or “c:/xampp/htdocs/”. Go To “localhost/phpmyadmin” in any browser and create Database (name according to SQL file).In That Database, Import the SQL file and finally go to URL: “http://localhost/file_name/phpfilename
Don’t Forget To create a database and import SQL file to run.

DOWNLOAD FACEBOOK IN PHP WITH SOURCE CODE: CLICK THE BUTTON BELOW


Author: Fabian Ros
2 1 vote
Article Rating
Subscribe
Notify of
guest
47 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Apriliyanto Ari Anggoro

Please build with PHP 7

Naseeb Bajracharya
6 years ago

sorry, it’s not possible right now! it’ll be better if you switch to PHP 5.6.3 to run the project!

Meemkhaan
6 years ago

localhost.sql file is missing

Naseeb Bajracharya
6 years ago
Reply to  Meemkhaan

there’s no need of such file called localhost.sql, It has its own SQL file with its own name
All you need is “faceback.sql” file which is inside “Database” Folder

Meemkhaan
6 years ago

returning error after fill and press the signup button

Naseeb Bajracharya
6 years ago
Reply to  Meemkhaan

check your database connection
make sure you have entered Correct database name with correct Database file

Manesh Kumar
Manesh Kumar
4 years ago

Sir I have Done Every Thing as you have mention in comments that change you mysql with mysqli i have done still this not working can you Sir please guide me what i have to do please Sir i am trying it continues from few days.Sir Please Help out

hrisikesh saloi
hrisikesh saloi
6 years ago

where is source code

hrisikesh
hrisikesh
5 years ago

thanks for the source code

pavan
pavan
5 years ago

i’m getting fatal error, how to solve it?
pls help me
thanks for code

premanth
premanth
5 years ago

sir,

admin area :

username and password

Jamshid Bacha
Jamshid Bacha
5 years ago

localhost redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
i am facing this one error

Ilham
Ilham
5 years ago

does not save or display pictures. move_uploaded_file ($ img_tmp_name, “../../ fb_users / Male /”.$ user.” / Post /”.$ prod_img_path);

Emma
Emma
5 years ago

In the signup.php it is writing call to undefine msql_connect.

p nandukumar goud
p nandukumar goud
5 years ago

its showing errors in login and sigin up….

amare
amare
5 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xamppshtdocsFacebookfb_filesfb_index_filefb_SignUp_fileSignUp.php:5 Stack trace: #0 C:xamppshtdocsFacebookindex.php(3): include() #1 {main} thrown in C:xamppshtdocsFacebookfb_filesfb_index_filefb_SignUp_fileSignUp.php on line 5

i will get this kind of error when i press the sign up buton

Richard Golden
5 years ago

Hi, I would like to set this up, i need to know what to do, do I upload all of the files to my root host, then set up a mysql database? please help me with this, I have problems setting up scripts most of the time, I did finally get Open Realty to install, but wow! please tell me what to do with the files ok? and do I name mysql data base facebook_ssql or what? i would reall appricate knowing what to use for the install file.

Richard Golden
5 years ago

Im sorry, will this run on the internet from my domain?

Yawar
Yawar
5 years ago

It’s Not Working Sir

Richard
Richard
5 years ago

Error
SQL query:


— Database: faceback

— ——————————————————–


— Table structure for table admin_info

CREATE TABLE IF NOT EXISTS admin_info (
Username varchar(200) NOT NULL,
Password varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
MySQL said: Documentation

#1046 – No database selected

Manjunatha
Manjunatha
5 years ago

Sir code is not opening… how to open zip ?

codeprojects
Editor
5 years ago
Reply to  Manjunatha

first, unzip it

Arya Steve
5 years ago

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.website development firm

Ravi
Ravi
5 years ago

I want Report of this project

laxmibaby
laxmibaby
4 years ago

its not working after the sign up

Solomon zefine
4 years ago

Phpmyadmn

I don’t know Username and password what should I do

codeprojects
Editor
4 years ago
Reply to  Solomon zefine

u can register new account yourself
or check your database record for the existing account records

Satya
Satya
4 years ago

Where is the source code

jayashri
jayashri
4 years ago

Returning error after fill and press the signup button.

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\Facebook\fb_files\fb_index_file\fb_SignUp_file\SignUp.php:5 Stack trace: #0 C:\xampp\htdocs\Facebook\index.php(3): include() #1 {main} thrown in C:\xampp\htdocs\Facebook\fb_files\fb_index_file\fb_SignUp_file\SignUp.php on line 5

Yawar Najar
4 years ago
Reply to  jayashri

All Files is Working Bro

Mpho
Mpho
4 years ago

Hello I hope your doing alright I wanted to ask about the facebook.sql for the user_info table there is no value for the primary key plus the user_id needs to be a foreign key I need your help.
thank you

atif
atif
4 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in C:\xampp\htdocs\FACEBOOK_IN_PHP_WITH_SOURCE_CODE\Facebook in PHP\Facebook\Login.php:5 Stack trace: #0 C:\xampp\htdocs\FACEBOOK_IN_PHP_WITH_SOURCE_CODE\Facebook in PHP\Facebook\index.php(2): include() #1 {main} thrown in C:\xampp\htdocs\FACEBOOK_IN_PHP_WITH_SOURCE_CODE\Facebook in PHP\Facebook\Login.php on line 5

zygy
zygy
4 years ago

sir, i try to run this project.

i hope enjoy with this project and thanks to share.
but when i try to create some account the page just loading and no more action.

i try too with different way, i add account directly to database faceback.sql but nothing the warning said wrong pass & username bla bla bla..

how i fixed it. thanks. rep to my email ASAP thank you.

chcipni
4 years ago

The file you uploaded, FACEBOOK_IN_PHP_WITH_SOURCE_CODE.zip, contains a virus so the upload was canceled: {HEX}php.base64.inject.178.UNOFFICIAL FOUND

Lawrence Miracle
Lawrence Miracle
3 years ago

What is the database name

ryan roslansky
3 years ago

microsoft linkedin

Lawrence Miracle
Lawrence Miracle
2 years ago

( ! ) Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\wamp64\www\Facebook in C:\wamp64\www\Facebook in PHP\Facebook\admin\index.php on line 5
( ! ) Error: Call to undefined function mysql_connect() in C:\wamp64\www\Facebook in PHP\Facebook\admin\index.php on line 5


Darkseid
2 years ago

very good post

Ankan
Ankan
1 year ago

Code is not working
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in D:\EDUCATION\XAMPP\htdocs\Facebook\fb_files\fb_index_file\fb_SignUp_file\SignUp.php:5 Stack trace: #0 D:\EDUCATION\XAMPP\htdocs\Facebook\index.php(3): include() #1 {main} thrown in D:\EDUCATION\XAMPP\htdocs\Facebook\fb_files\fb_index_file\fb_SignUp_file\SignUp.php on line 5

this error is showing
what to do?