Facebook Login
Seamlessly integrate Facebook OAuth 2.0 authentication into your Pocket Script application, allowing users to log in with their Facebook accounts. This guide walks you through the setup process, from creating a Facebook App to configuring Pocket Script for a smooth “Login with Facebook” experience.
Overview
Integrating Facebook as an identity provider offers your users a convenient and secure way to access your Pocket Script application. This feature leverages Facebook’s OAuth 2.0 protocol, ensuring a streamlined authentication process while maintaining high security standards.
Getting Facebook App ID and Secret Key ?
-
Log in to Facebook for Developers and either select an existing app or create a New App
if you already have an existing app then skip to step 3 -
Create a New App
-
Then Setup Facebook Login
-
Select
Web
as we are configuring Facebook login for the web version -
Give your site URL and click on
save
- You can ignore the other quickstart steps
- Navigate to
Settings -> Basic
on the sidebar
-
Simply copy your
App ID
andApp Secret
-
Finally, Go to Facebook Login -> Settings (No. 4 in the above image) to add a valid OAuth redirect URL to finalize our settings
For Valid OAuth redirect URIs, appendadmin/controller/oauth.php
to your website URL-
For the main domain install at example.com, enter your URL as:
-
For sub-domain install at subdomain.example.com, enter your URL as
-
For subfolder install at example.com/subfolder, enter your URL as
-
Final Steps
Paste the copied keys in your admin panel by following the steps below
- Log in to your Admin Interface (Pocket script instance)
- Navigate to
Settings -> Configuration -> Web App Configuration
from the admin sidebar - Scroll down to the
Social Login
Section - And paste the copied
Facebook App ID
andFacebook Secret Key
That’s it!
Need Help?
If you need any help or assistance, we’re here for you! Please reach out to our support team