Create separate apps for Facebook Login and Facebook Login for business if you are using Embedded Signup.
- Go to the Facebook for Developers website and sign in with your Facebook account and click My Apps from the menu.
- Then click to “Create App” button as here.
- Give your app a name
- On the next page, select
Authenticate and request data from users with Facebook Login
. - Select your business (if applicable).
- Kindly note that business verification is required for production.
- You will also be required to go through app review in order for your app to get
public_profile
permission.
- From the app page, click
Settings
and thenBasic
. Get theApp ID
andApp Secret
from here. - From the same page, you need to ensure that you add the following information as well:
- App icon
- Privacy policy URL
- User data deletion policy url &
- Category
- Add your callback URL i.e. https://yourdomain.com/facebook/callback to ‘Valid OAuth redirect URIs’
Please note, once your app is verified, you will now be able to use the app on production.
- Go to Google Cloud Console and create a new project.
- Then click the
CREATE PROJECT
to continue, input your project name and organization (you can set it as No organization) then clickCREATE
.
NOTE: If you have a project already you can skip the above steps. And just select your current project name created previously.
- After creating the project, click the credentials link on the left side menu. Then click
+ CREATE CREDENTIALS
button. From the dropdown selectOAuth client ID
. - In the next screen click
CONFIGURE CONSENT SCREEN
. - In the next screen click, select User Type as External
- If your account is new you need to finish the OAuth consent screen and provide the important details they ask for.
- Once the consent is finished, go back to the Credentials page by clicking Credentials on the left menu. Then click
+ CREATE CREDENTIALS
button & from the dropdown select OAuth client ID (Like step 3 above) - Add the following details:
- Authorized Javascript origins URI - https://yourdomain.com
- Authorized redirect URIs - https://yourdomain.com/google/callback
- Click save and then copy the client ID and secret to your app.
Google Client ID
and Secret
, which you can use to integrate Google into your application. Make sure to keep your keys and secrets safe and secure to protect your users’ data.