Configuration
After installing and activating the Social Networks Login module, you need to configure OAuth credentials for each social network you want to enable.
Overviewโ
Each social network requires you to create a developer application and obtain an App ID (or Client ID) and App Secret (or Client Secret). These credentials are entered into the module settings in Perfex CRM, which allows the module to communicate with the social platform's OAuth system to authenticate users.
The documentation package includes a PDF file โ how_to_create_social_media_apps.pdf โ with step-by-step instructions for creating apps/OAuth credentials for all supported social networks (Facebook, Google, etc.).
Step-by-Step Configurationโ
- Navigate to the module Options in Perfex CRM.
- For each social network you want to enable, enter the required credentials.
- Save your settings.
- Test the login by visiting the customer portal and clicking the social login button.
Setting Up Social Appsโ
Each social network requires you to create a developer application. Below are the primary platforms:
Facebook Login Setupโ
- Go to developers.facebook.com and create a new app.
- Select Consumer as the app type.
- Navigate to Facebook Login โ Settings in your app dashboard.
- Add the callback URL provided in the module Options page to the Valid OAuth Redirect URIs field.
- Copy the App ID and App Secret from the app's Basic Settings page.
- Paste them into the module settings in Perfex CRM.
Google Login Setupโ
- Go to the Google Cloud Console.
- Create a new project (or select an existing one).
- Navigate to APIs & Services โ Credentials.
- Click Create Credentials โ OAuth Client ID.
- Set the application type to Web application.
- Add the callback URL from the module Options page to the Authorized redirect URIs.
- Copy the Client ID and Client Secret.
- Paste them into the module settings in Perfex CRM.
Other Networksโ
For additional supported networks, follow the detailed instructions in the how_to_create_social_media_apps.pdf file included in your download package.
Credentials Referenceโ
| Field | Where to Find It | Used For |
|---|---|---|
| App ID | Facebook Developer Dashboard โ Basic Settings | Facebook Login |
| App Secret | Facebook Developer Dashboard โ Basic Settings | Facebook Login |
| Client ID | Google Cloud Console โ Credentials | Google Login |
| Client Secret | Google Cloud Console โ Credentials | Google Login |
Keep your App Secret and Client Secret confidential. Never expose them in client-side code or public repositories. Store them securely in your Perfex CRM module settings only.
Callback URLsโ
When configuring your social app, you will need to add callback/redirect URLs. The module provides these URLs on the Options page within Perfex CRM.
- Copy the exact URL displayed for each network.
- Paste it into the corresponding field in your developer app settings (e.g., "Valid OAuth Redirect URIs" for Facebook, "Authorized redirect URIs" for Google).
Callback URLs are unique to your Perfex CRM installation domain. If you change your domain or switch between HTTP and HTTPS, you will need to update the callback URLs in both the social app settings and ensure your CRM reflects the correct domain.
Troubleshootingโ
| Issue | Solution |
|---|---|
| Login button not appearing | Ensure valid credentials are saved and the module is activated |
| "Redirect URI mismatch" error | Verify the callback URL in the developer app matches the one shown in module Options |
| "App not verified" warning | Complete the app verification process in the respective developer portal |
| Login fails silently | Check server error logs; ensure cURL extension is enabled and HTTPS is configured |
Supportโ
If you encounter any issues with social login configuration, visit the Themesic Support Portal to open a support ticket.