SlideShare a Scribd company logo
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
1
Login Register with Social Account using PHP
Created: 01/01/2019
By: Subhashree Nanda
Email: contact@a2zwebhelp.com
Table of Contents
1. Introduction
2. FoldersandFilesStructure
3. Howto Install
4. Register with your email
5. Integrate Facebook
6. Integrate Twitter
7. Integrate LinkedIn
8. Integrate Google
9. Integrate Instagram
10. Integrate Pinterest
11. Upload and Test
Thank youfor purchasingmytheme.If youhave anyquestionsthatare beyondthe scope of
thishelpfile,please feelfree toemail viamyuserpage contact form here.Thanksso much!
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
2
1. Introduction
PHP Login/RegistrationSystemisacomplete loginandregistrationsystemdevelopedinPHPand
MySQL whichincludesregistrationwithEmail id,Facebook,Twitter, LinkedIn,Gmail,Instagram, and
Pinterest.The registrationandloginform isdesignedinHTML5 and Bootstrap4 with jQuery validation.It
isveryeasyto install andintegrate withyourexistingproject.
2. Folders andFiles Structure
Please download Login_Register_with_Social_Account.zip file andunzipinyoursystem. Youwill get
“Login_Register_with_Social_Account”folderwhichcontainsall filesandfolderrequiredtorunthis
program. You can see twofoldersinthe rootdirectory1. database and2. register. Database folder
containsthe SQL file tocreate the registertable. Andregisterfoldercontainstotal 7foldersand18 PHP
files.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
3
assets: Thisfoldercontentsall designrelatedfileslikeCSS,JS fontsandimages.The formsare designed
inbootstrapso we will getall CSSfilesincssfolder.Youcan change color,layoutand formdesign
throughthe CSS files.
Facebook: Thisfoldercontainsall libraryfileandsettingfilesin PHP.Noneedtochange any PHP library
files,youneedtochange “settings.php”file whichwe will discusslater.
google:ThisfoldercontainsGoogle loginAPIfile andsettingfile.
instagram: This folderalso containsthe APIfilesandsettingfiles.
linkedin:Thisfoldercontainslibrary filesandconfigfile.
pinterest:Thisfoldercontainlibraryfileandsettingfile.
twitter: Thisfoldercontainlibraryfileandconfigfile.
You needtorun register.phpor login.php
3. How toInstall
Step-1: Create Database /Table
Before runningthe projectyouneedtocreate the registertable. If youhave anexistingdatabase then
imports“register.sql”to your database. If youdon’thave any database thencreates a database and
importsthe files.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
4
Step-2: Change the connection file
Nowyouneedto change “connection.php”file withyourvalues. Youneedtochange $username,
$passwordand $dbname withyourdatabase name.
Step-3: Copy / Upload files to Server.
Nowuploadall file to yourserverthrough any FTP program youuse. Let’sassume yourfoldername is
register. To runthe programsenterhttps://www.yourdomain.com/register.php inyourbrowser.
The new usercan eitherregisterbyfillingupthe registrationformorbyclickingonany social media
icon. Andif the userregisterbefore thenhe/she can loginbyenteringusername andpasswordor
clickingonthe social mediaiconhe had registeredwith.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
5
4. Register withyour email
Thisis the basicregistrationprocessof anyregistrationform, enterFastname,lastname,email address,
passwordandconfirm the password to create a new account. Once the userentersall informationthe
data will be storedinourdatabase and the userbecomesa registeredmember.The passwordwill be
encryptedandstore inthe database. “encryptIt”a user-definedfunctionusedtoencryptthe password.
Registeredusercan loginto the systemthrough login.php file.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
6
If the userenterscorrectemail addressandpasswordthenthe systemwill take the usertomyaccount
page.
Forgot Password?
The systemalsoprovidesforgotpasswordfacility, the userneedstoenterthe correctemail address.If
the email addressmatch withour database thenthe systemwill sendresetpasswordlinkto the user's
email address.
resetpassword.php
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
7
5. Integrate Facebook
To integrate Facebook loginregistrationsystemyouneed Facebook AppClientId,ClientSecret, Client
Token and alsoyouneedto set RedirectURL whichwill returnbackto yoursystemaftergetting
authorization.Mostimportant yourservershouldbe SSLenabledandthe systemshouldrunonHTTPS.
How to generate RequiredKeys for Facebook:
Go to FacebookDeveloper(https://developers.facebook.com/apps) accountandloggedinwithyour
Facebookusername andpassword,thencreate New Appand fill upthe form andregisteryourwebsite
and clickon “Create AppID”.
Afteryouhave createdthe AppID and enteredyourwebsite’sURLitwill generate the AppID , App
Secretand ClientToken.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
8
To get yourClientToken goto settings (LeftPanel)>Advanced,here youwillgetyourClientToken
Once thisis done nowsetyour redirectURL fromleftpanel goto FacebookLogin > Settings
Once every thingisset, save the changes.
Nowopenthe folderyouhave downloaded,goto the Facebook folderandopen “settings.php”file and
replace the keyvalues.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
9
Save the file,Noneedtodoany otherchanges. Now the systemisreadyto Loginand Registerthrough
Facebook.
6. Integrate Twitter
Same as Facebookto integrate Twitteryouneed ConsumerKeyandConsumerSecret.
How to generate RequiredKeys for Twitter:
To generate the key you need to login to Twitter Developer (https://dev.twitter.com/) account
with your Twitter user name and password. Aftersuccessfullyloggedin toTwitterDeveloper
account clickon create newAppand fill upthe required information.
Afteryoufill upall informationitwillgenerate requiredkeys.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
10
Nowopen config.phpfile intwitterfolderandchange the keysandsave the file. Now the systemis
readyto Loginand RegisterthroughTwitter.
7. Integrate LinkedIn
Same as FacebookandTwitterwe will generate ClientIdandClientSecretand use inour system.
How to generate RequiredKeys for LinkedIn:
To create your Applicationkeys,loginto LinkedIndeveloperaccount
(https://www.linkedin.com/developer/apps).Here youcancreate Applicationandfillupthe required
fields.Once youare done itwill generate the keys
Under application permission,youneedtocheck r_basicprofile andr_emailaddressess.Also,youneed
to setthe RedirectURL.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
11
Once done open config.phpfile inlinkedinfolderandchange the values.
8. Integrate Google
Like othersocial media,we needwe needClientidandClientsecretfromGoogle.Itcanbe generated
throughyour Gmail account loginindetails.
How to generate RequiredKeys for Google:
To generate keysforGoogle,pleaselogintoGoogle developeraccountand create a new project. Enter
requiredinfotogenerate the keys. (https://console.developers.google.com/)
Also, don’tforgettoenteryourredirectURL.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
12
Once you generate the keyspleaseopen settings.phpingoogle folderandchange the values.
9. Integrate Instagram
Now it’stime to generate the keyforInstagram, Itcan be done inInstagramdeveloperaccountwith
your Instagramlogininformation.
How to generate RequiredKeys for Instagram:
You needtologinto Instagramdeveloperaccounttogenerate the requiredkeys.
https://www.instagram.com/developer/ here youcanregisteryourappand generate the keys.
Go to Manage Clients(TopMenu) > RegisterNew Clients >Fill upthe requiredfields.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
13
Once you registerthenyoucanset yourredirectURL under the security tab
Nowopen “instagram-api-settings.php” ininstagramfolderandchange the values.
10. Integrate Pinterest
Nowlet’sgenerate the keyfrom Pinterestandintegrate inoursystem.The processissame asthe other
social mediaaccounts.
How to Generate RequiredKeys for Pinterest:
Go to PinterestDevelopersection(https://developers.pinterest.com/),here youcancreate a new
projectand generate requiredkeys. Aftersuccessful logintoPinterestdeveloperaccount “Create new
App”.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
14
Once you fill upthe detail yourkeywill be generated,
Also, don’tforgettoenteryourRedirect URL
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
15
Once everythingisset,pleaseopen“pinterest-api-settings.php”file in pinterestfolderandchange the
values.
11. Upload and Test
Once you create all the requiredkeysandupdate the relatedfile now it’stime touploadall fileto the
webserverandtestour program. Youcan use anyFTP program to uploadyourfilestothe server. Before
startingthe systemor run register.phpfilepleasedouble checkyoudidthe followingchangestothe
followingfiles.
1. connection.php(rootfolder):Changedthe values withyourdatabase userandpassword.
2. settings.php inFacebook folder.
3. config.php intwitterfolder.
4. settings.php ingoogle folder.
5. instagram-api-settings.php ininstagramfolder.
6. config.php inlinkedin folder
7. pinterest-api-settings.php inpinterestfolder.
LoginRegisterwithSocial AccountusingPHP V2
www.a2zwebhelp.com
16
Nowrun register.phpandtestthe Loginandregistrationsystem.
If you face any difficultyrunningthe file orneedmore helponanysectionthenplease fill free tocontact
us at contact@a2zwebhelp.com ora2zwebhelp@gmail.com.

More Related Content

What's hot

การใช้ Slide share
การใช้ Slide shareการใช้ Slide share
การใช้ Slide share
School
 
Going Social, Global Global
Going Social, Global GlobalGoing Social, Global Global
Going Social, Global Global
mcculley1108
 
Kick-Ass Project Collaboration with Office 365 Groups
Kick-Ass Project Collaboration with Office 365 GroupsKick-Ass Project Collaboration with Office 365 Groups
Kick-Ass Project Collaboration with Office 365 Groups
Gregory Zelfond
 
Girl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - WorkbookGirl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - Workbook
Lauren Hayward Schaefer
 
How can i create an instagram account
How can i create an instagram accountHow can i create an instagram account
How can i create an instagram account
Branding by Pixels
 
Guide to hack Facebook Password
Guide to hack Facebook PasswordGuide to hack Facebook Password
Guide to hack Facebook Password
auspiciousscene42
 

What's hot (6)

การใช้ Slide share
การใช้ Slide shareการใช้ Slide share
การใช้ Slide share
 
Going Social, Global Global
Going Social, Global GlobalGoing Social, Global Global
Going Social, Global Global
 
Kick-Ass Project Collaboration with Office 365 Groups
Kick-Ass Project Collaboration with Office 365 GroupsKick-Ass Project Collaboration with Office 365 Groups
Kick-Ass Project Collaboration with Office 365 Groups
 
Girl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - WorkbookGirl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - Workbook
 
How can i create an instagram account
How can i create an instagram accountHow can i create an instagram account
How can i create an instagram account
 
Guide to hack Facebook Password
Guide to hack Facebook PasswordGuide to hack Facebook Password
Guide to hack Facebook Password
 

Similar to Login Register with Social Account using PHP

Frappe ERPNext Open Day February 2014
Frappe ERPNext Open Day February 2014Frappe ERPNext Open Day February 2014
Frappe ERPNext Open Day February 2014
rushabh_mehta
 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docx
ehathis
 
Custom Automation Masterclass – Workshop 2: Email validation using kKckbox
Custom Automation Masterclass – Workshop 2: Email validation using kKckboxCustom Automation Masterclass – Workshop 2: Email validation using kKckbox
Custom Automation Masterclass – Workshop 2: Email validation using kKckbox
JanBogaert8
 
Lean Entrepreneurship
Lean EntrepreneurshipLean Entrepreneurship
Lean Entrepreneurship
Andreas Kwiatkowski
 
Google ug3509
Google ug3509Google ug3509
Google ug3509
hmsoh
 
Google ug3509
Google ug3509Google ug3509
Google ug3509
hmsoh
 
Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and
George Batschinski
 
Push notifications with dashboard and swift
Push notifications with dashboard and swiftPush notifications with dashboard and swift
Push notifications with dashboard and swift
Charles Ramos
 
Magento Mailchimp module user manual
Magento Mailchimp module user manualMagento Mailchimp module user manual
Magento Mailchimp module user manual
Tauros Media Nederland BV
 
5 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 20195 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 2019
Ariba Niaz
 
How to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdfHow to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdf
Katy Slemon
 
Introductution to social connect Magento extension
Introductution to social connect Magento extensionIntroductution to social connect Magento extension
Introductution to social connect Magento extension
Ketan Raval
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
Katy Slemon
 
How to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdfHow to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdf
Katy Slemon
 
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using ClearbitCustomer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
JanBogaert8
 
Ai900 setuppg
Ai900 setuppgAi900 setuppg
Ai900 setuppg
crazysmellydog
 
Getting Started With Linux® Shared Hosting
Getting Started With Linux® Shared HostingGetting Started With Linux® Shared Hosting
Getting Started With Linux® Shared Hosting
webhostingguy
 
Microsoft azure pass how to
Microsoft azure pass   how toMicrosoft azure pass   how to
Microsoft azure pass how to
CincoC
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)
MAHFUZ RAIHAN
 
How to get data from twitter (by hnnrrhm)
How to get data from twitter (by hnnrrhm)How to get data from twitter (by hnnrrhm)
How to get data from twitter (by hnnrrhm)
Hani Nurrahmi
 

Similar to Login Register with Social Account using PHP (20)

Frappe ERPNext Open Day February 2014
Frappe ERPNext Open Day February 2014Frappe ERPNext Open Day February 2014
Frappe ERPNext Open Day February 2014
 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docx
 
Custom Automation Masterclass – Workshop 2: Email validation using kKckbox
Custom Automation Masterclass – Workshop 2: Email validation using kKckboxCustom Automation Masterclass – Workshop 2: Email validation using kKckbox
Custom Automation Masterclass – Workshop 2: Email validation using kKckbox
 
Lean Entrepreneurship
Lean EntrepreneurshipLean Entrepreneurship
Lean Entrepreneurship
 
Google ug3509
Google ug3509Google ug3509
Google ug3509
 
Google ug3509
Google ug3509Google ug3509
Google ug3509
 
Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and Swift to send Push Notifications with Parse Dashboard and
Swift to send Push Notifications with Parse Dashboard and
 
Push notifications with dashboard and swift
Push notifications with dashboard and swiftPush notifications with dashboard and swift
Push notifications with dashboard and swift
 
Magento Mailchimp module user manual
Magento Mailchimp module user manualMagento Mailchimp module user manual
Magento Mailchimp module user manual
 
5 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 20195 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 2019
 
How to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdfHow to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdf
 
Introductution to social connect Magento extension
Introductution to social connect Magento extensionIntroductution to social connect Magento extension
Introductution to social connect Magento extension
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
 
How to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdfHow to Integrate Google Adwords API in Laravel App.pdf
How to Integrate Google Adwords API in Laravel App.pdf
 
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using ClearbitCustomer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
 
Ai900 setuppg
Ai900 setuppgAi900 setuppg
Ai900 setuppg
 
Getting Started With Linux® Shared Hosting
Getting Started With Linux® Shared HostingGetting Started With Linux® Shared Hosting
Getting Started With Linux® Shared Hosting
 
Microsoft azure pass how to
Microsoft azure pass   how toMicrosoft azure pass   how to
Microsoft azure pass how to
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)
 
How to get data from twitter (by hnnrrhm)
How to get data from twitter (by hnnrrhm)How to get data from twitter (by hnnrrhm)
How to get data from twitter (by hnnrrhm)
 

Recently uploaded

GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
Karya Keeper
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
kgyxske
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Paul Brebner
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
kalichargn70th171
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
Severalnines
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Peter Caitens
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 

Recently uploaded (20)

GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 

Login Register with Social Account using PHP

  • 1. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 1 Login Register with Social Account using PHP Created: 01/01/2019 By: Subhashree Nanda Email: contact@a2zwebhelp.com Table of Contents 1. Introduction 2. FoldersandFilesStructure 3. Howto Install 4. Register with your email 5. Integrate Facebook 6. Integrate Twitter 7. Integrate LinkedIn 8. Integrate Google 9. Integrate Instagram 10. Integrate Pinterest 11. Upload and Test Thank youfor purchasingmytheme.If youhave anyquestionsthatare beyondthe scope of thishelpfile,please feelfree toemail viamyuserpage contact form here.Thanksso much!
  • 2. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 2 1. Introduction PHP Login/RegistrationSystemisacomplete loginandregistrationsystemdevelopedinPHPand MySQL whichincludesregistrationwithEmail id,Facebook,Twitter, LinkedIn,Gmail,Instagram, and Pinterest.The registrationandloginform isdesignedinHTML5 and Bootstrap4 with jQuery validation.It isveryeasyto install andintegrate withyourexistingproject. 2. Folders andFiles Structure Please download Login_Register_with_Social_Account.zip file andunzipinyoursystem. Youwill get “Login_Register_with_Social_Account”folderwhichcontainsall filesandfolderrequiredtorunthis program. You can see twofoldersinthe rootdirectory1. database and2. register. Database folder containsthe SQL file tocreate the registertable. Andregisterfoldercontainstotal 7foldersand18 PHP files.
  • 3. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 3 assets: Thisfoldercontentsall designrelatedfileslikeCSS,JS fontsandimages.The formsare designed inbootstrapso we will getall CSSfilesincssfolder.Youcan change color,layoutand formdesign throughthe CSS files. Facebook: Thisfoldercontainsall libraryfileandsettingfilesin PHP.Noneedtochange any PHP library files,youneedtochange “settings.php”file whichwe will discusslater. google:ThisfoldercontainsGoogle loginAPIfile andsettingfile. instagram: This folderalso containsthe APIfilesandsettingfiles. linkedin:Thisfoldercontainslibrary filesandconfigfile. pinterest:Thisfoldercontainlibraryfileandsettingfile. twitter: Thisfoldercontainlibraryfileandconfigfile. You needtorun register.phpor login.php 3. How toInstall Step-1: Create Database /Table Before runningthe projectyouneedtocreate the registertable. If youhave anexistingdatabase then imports“register.sql”to your database. If youdon’thave any database thencreates a database and importsthe files.
  • 4. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 4 Step-2: Change the connection file Nowyouneedto change “connection.php”file withyourvalues. Youneedtochange $username, $passwordand $dbname withyourdatabase name. Step-3: Copy / Upload files to Server. Nowuploadall file to yourserverthrough any FTP program youuse. Let’sassume yourfoldername is register. To runthe programsenterhttps://www.yourdomain.com/register.php inyourbrowser. The new usercan eitherregisterbyfillingupthe registrationformorbyclickingonany social media icon. Andif the userregisterbefore thenhe/she can loginbyenteringusername andpasswordor clickingonthe social mediaiconhe had registeredwith.
  • 5. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 5 4. Register withyour email Thisis the basicregistrationprocessof anyregistrationform, enterFastname,lastname,email address, passwordandconfirm the password to create a new account. Once the userentersall informationthe data will be storedinourdatabase and the userbecomesa registeredmember.The passwordwill be encryptedandstore inthe database. “encryptIt”a user-definedfunctionusedtoencryptthe password. Registeredusercan loginto the systemthrough login.php file.
  • 6. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 6 If the userenterscorrectemail addressandpasswordthenthe systemwill take the usertomyaccount page. Forgot Password? The systemalsoprovidesforgotpasswordfacility, the userneedstoenterthe correctemail address.If the email addressmatch withour database thenthe systemwill sendresetpasswordlinkto the user's email address. resetpassword.php
  • 7. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 7 5. Integrate Facebook To integrate Facebook loginregistrationsystemyouneed Facebook AppClientId,ClientSecret, Client Token and alsoyouneedto set RedirectURL whichwill returnbackto yoursystemaftergetting authorization.Mostimportant yourservershouldbe SSLenabledandthe systemshouldrunonHTTPS. How to generate RequiredKeys for Facebook: Go to FacebookDeveloper(https://developers.facebook.com/apps) accountandloggedinwithyour Facebookusername andpassword,thencreate New Appand fill upthe form andregisteryourwebsite and clickon “Create AppID”. Afteryouhave createdthe AppID and enteredyourwebsite’sURLitwill generate the AppID , App Secretand ClientToken.
  • 8. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 8 To get yourClientToken goto settings (LeftPanel)>Advanced,here youwillgetyourClientToken Once thisis done nowsetyour redirectURL fromleftpanel goto FacebookLogin > Settings Once every thingisset, save the changes. Nowopenthe folderyouhave downloaded,goto the Facebook folderandopen “settings.php”file and replace the keyvalues.
  • 9. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 9 Save the file,Noneedtodoany otherchanges. Now the systemisreadyto Loginand Registerthrough Facebook. 6. Integrate Twitter Same as Facebookto integrate Twitteryouneed ConsumerKeyandConsumerSecret. How to generate RequiredKeys for Twitter: To generate the key you need to login to Twitter Developer (https://dev.twitter.com/) account with your Twitter user name and password. Aftersuccessfullyloggedin toTwitterDeveloper account clickon create newAppand fill upthe required information. Afteryoufill upall informationitwillgenerate requiredkeys.
  • 10. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 10 Nowopen config.phpfile intwitterfolderandchange the keysandsave the file. Now the systemis readyto Loginand RegisterthroughTwitter. 7. Integrate LinkedIn Same as FacebookandTwitterwe will generate ClientIdandClientSecretand use inour system. How to generate RequiredKeys for LinkedIn: To create your Applicationkeys,loginto LinkedIndeveloperaccount (https://www.linkedin.com/developer/apps).Here youcancreate Applicationandfillupthe required fields.Once youare done itwill generate the keys Under application permission,youneedtocheck r_basicprofile andr_emailaddressess.Also,youneed to setthe RedirectURL.
  • 11. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 11 Once done open config.phpfile inlinkedinfolderandchange the values. 8. Integrate Google Like othersocial media,we needwe needClientidandClientsecretfromGoogle.Itcanbe generated throughyour Gmail account loginindetails. How to generate RequiredKeys for Google: To generate keysforGoogle,pleaselogintoGoogle developeraccountand create a new project. Enter requiredinfotogenerate the keys. (https://console.developers.google.com/) Also, don’tforgettoenteryourredirectURL.
  • 12. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 12 Once you generate the keyspleaseopen settings.phpingoogle folderandchange the values. 9. Integrate Instagram Now it’stime to generate the keyforInstagram, Itcan be done inInstagramdeveloperaccountwith your Instagramlogininformation. How to generate RequiredKeys for Instagram: You needtologinto Instagramdeveloperaccounttogenerate the requiredkeys. https://www.instagram.com/developer/ here youcanregisteryourappand generate the keys. Go to Manage Clients(TopMenu) > RegisterNew Clients >Fill upthe requiredfields.
  • 13. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 13 Once you registerthenyoucanset yourredirectURL under the security tab Nowopen “instagram-api-settings.php” ininstagramfolderandchange the values. 10. Integrate Pinterest Nowlet’sgenerate the keyfrom Pinterestandintegrate inoursystem.The processissame asthe other social mediaaccounts. How to Generate RequiredKeys for Pinterest: Go to PinterestDevelopersection(https://developers.pinterest.com/),here youcancreate a new projectand generate requiredkeys. Aftersuccessful logintoPinterestdeveloperaccount “Create new App”.
  • 14. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 14 Once you fill upthe detail yourkeywill be generated, Also, don’tforgettoenteryourRedirect URL
  • 15. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 15 Once everythingisset,pleaseopen“pinterest-api-settings.php”file in pinterestfolderandchange the values. 11. Upload and Test Once you create all the requiredkeysandupdate the relatedfile now it’stime touploadall fileto the webserverandtestour program. Youcan use anyFTP program to uploadyourfilestothe server. Before startingthe systemor run register.phpfilepleasedouble checkyoudidthe followingchangestothe followingfiles. 1. connection.php(rootfolder):Changedthe values withyourdatabase userandpassword. 2. settings.php inFacebook folder. 3. config.php intwitterfolder. 4. settings.php ingoogle folder. 5. instagram-api-settings.php ininstagramfolder. 6. config.php inlinkedin folder 7. pinterest-api-settings.php inpinterestfolder.
  • 16. LoginRegisterwithSocial AccountusingPHP V2 www.a2zwebhelp.com 16 Nowrun register.phpandtestthe Loginandregistrationsystem. If you face any difficultyrunningthe file orneedmore helponanysectionthenplease fill free tocontact us at contact@a2zwebhelp.com ora2zwebhelp@gmail.com.