Facebook API Configuration
To use Facebook login feature, you need to create Facebook application and link it to your site. Facebook will generate application id and secret, which you need to copy and set in Social Suite extension configuration.
1. To create Facebook application, please follow the next steps:
- Go to developers.facebook.com
and select
My Apps > Add New App
.
- In popup enter application name and contact email, press
Create App ID
and complete security check (captcha).
- Select
Settings > Basic
in left menu and fillApp Domains
,Privacy Policy URL
andTerms of Service URL
fields. Also you can selectCategory
for your app here.
-
Press
Add Platform
button at page bottom,select
Website
and fill your site url in
Site URL
field. PressSave changes
. -
To make application public, go to
App Review
and enable it. Select app category if prompted.
2. To enable login feature in your application, follow the next steps:
-
Click plus near
PRODUCTS
at left menu and thenSet Up
button inFacebook Login
card. -
Go to the
Facebook Login > Settings
, fillValid OAuth Redirect URIs
field with valuehttps://[your.domain]/sociallogin/social/login/id/facebook
and pressSave Changes
button.If you are not sure what redirect URI to use, go to Magento admin
Stores > Configuration > Swissup Social Suite > Social login > Social Networks > Facebook
and copy generated value from
Redirect URI
field
3. Finally, you need to set app id and secret in Social Login configuration:
-
In your application, go to
Settings > Basic
and copyApp ID
andApp Secret
. -
In Magento admin, go to
Stores > Configuration > Swissup Social Suite > API Credentials > Facebook
and insertApplication ID
andApplication Secret
from your app.
4. Now you can enable Facebook login feature in
Stores > Configuration > Swissup Social Suite > Social login > Social Networks > Facebook