2.2.Get the API credentials From the Facebook Developers Account ↑ Back to Top
Facebook is also one of the most popular social networking sites on the web. The Facebook account users can log in very easily to the Magento 2 store just by clicking the Facebook Login button once. To enable this feature admin needs to get the App ID and the APP Secret from the Facebook Developers Account.
To get the API credentials
- Go to the https://developers.facebook.com/ link.
- Enter the login credentials.
- In the left navigation panel, click My Apps.
The page appears as shown in the following figure:
- Click the Add a New App button.
The Create a New App ID dialog box appears as shown in the following figure:
- In the Display Name box, enter the required name.
- In the Contact Email box, enter the required email id.
- Click the Create App ID button.
A Security Check dialog box appears as shown in the following figure:
- Enter the displayed text in the box, and then click the Submit button.
A page appears as shown in the following figure:
- In the right panel, move the cursor over the Facebook Login text.
The page appears as shown in the following figure:
- Click the Set Up button.
The page appears as shown in the following figure:
- In the left navigation panel, under Facebook Login, click the Settings menu.
In the right panel, the page appears as shown in the following figure:
- In the Valid 0Auth redirect URls box, enter http://www.example.com/cedvendorsociallogin/facebook/connect.
- Click the Save Changes button.
The entered URL is saved. - In the left navigation panel, click the Settings menu.
The page appears as shown in the following figure:
- In the Privacy Policy URL box, enter the required URL.
- Click the Save Changes button.
The entered privacy policy URL is saved. - In the left navigation panel, click the App Review menu.
In the right panel, the page appears as shown in the following figure:
- Under Make Vendor Social Login Public?, click to select Yes.
- Click the button to choose the required category, and then click the Confirm button.
- In the left navigation panel, click the Settings menu.
The page appears as shown in the following figure:
- Copy the App ID and the APP Secret respectively and keep it safely to paste them in the Facebook Configuration Settings page available in the Magento 2 Admin panel.
Note: Click the Show button to view the App Secret value.
×