Allow users to sign in using their existing social media accounts. ChatNet uses HybridAuth to support multiple providers including Facebook, Google, GitHub, Twitter/X, Discord, LinkedIn, and Apple. This guide walks you through setting up each provider.
Navigate to Social Login
Social login simplifies registration and increases conversion by letting users sign in with accounts they already have. All providers follow a similar setup pattern:
https://yourdomain.com/hybridauth_callbackImportant: Most providers require your site to use HTTPS. Ensure you have an SSL certificate installed before configuring social login.
https://yourdomain.com/hybridauth_callback| ChatNet Setting | Facebook Value |
|---|---|
| App ID | Your Facebook App ID |
| App Secret | Your Facebook App Secret |
Note: Facebook requires app review for public access. During development, add test users in App Roles.
https://yourdomain.com/hybridauth_callback| ChatNet Setting | Google Value |
|---|---|
| Client ID | Your Google Client ID |
| Client Secret | Your Google Client Secret |
You may also need to configure the OAuth consent screen with your app name and authorized domains.
https://yourdomain.com/hybridauth_callback| ChatNet Setting | GitHub Value |
|---|---|
| Client ID | Your GitHub Client ID |
| Client Secret | Your GitHub Client Secret |
https://yourdomain.com/hybridauth_callback| ChatNet Setting | Twitter Value |
|---|---|
| API Key | Your Twitter API Key |
| API Secret | Your Twitter API Secret |
Note: Twitter's free API tier has limitations. You may need to apply for Elevated access for production use.
https://yourdomain.com/hybridauth_callback| ChatNet Setting | Discord Value |
|---|---|
| Client ID | Your Discord Client ID |
| Client Secret | Your Discord Client Secret |
ChatNet requests these OAuth2 scopes:
identify - Access user's basic infoemail - Access user's email addresshttps://yourdomain.com/hybridauth_callback| ChatNet Setting | LinkedIn Value |
|---|---|
| Client ID | Your LinkedIn Client ID |
| Client Secret | Your LinkedIn Client Secret |
Enable these products in your LinkedIn app:
Apple Sign In requires an Apple Developer account ($99/year).
yourdomain.comhttps://yourdomain.com/hybridauth_callback| ChatNet Setting | Apple Value |
|---|---|
| Services ID | Your Services ID identifier |
| Team ID | Found in Membership details |
| Key ID | From your private key |
| Private Key | Contents of .p8 file |
| Issue | Solution |
|---|---|
| Redirect URI mismatch | Ensure callback URL exactly matches (including https) |
| Invalid credentials | Double-check Client ID and Secret are copied correctly |
| Scope errors | Verify required permissions are enabled in provider settings |
| SSL required | Install an SSL certificate - most providers require HTTPS |
| App not verified | Some providers require app review for public access |
| Login button not showing | Ensure the provider is enabled in ChatNet settings |