WordPress – Social Login
The Janrain Social Login plugin for WordPress enables integration of Janrain Social Login features on your WordPress site. This plugin requires a Janrain Social Login account.
This topic describes the installation of the Social Login integration. If you are using Janrain Registration, refer to WordPress – Registration.
Note: The Janrain Social Login plugin for WordPress was previously referred to as RPX and Engage. Those legacy terms may still appear in the WordPress module UI.
Requires PHP 5.3 and WordPress 3.5 or higher.
- Download the Janrain Social Login plugin from wordpress.org.
- Unzip the file and copy the
rpx directory and its contents to your
/wp-content/plugins/ directory (or use the plugin installer built into WordPress).
- Use the WordPress Plugins menu to activate the Janrain Social Login plugin.
- Enable user registrations:
- Navigate to Settings > General.
- Select the Membership, Anyone can register box.
- Click Save at the bottom of the page.
- Go to the Janrain Engage configuration page by selecting Janrain Engage from the navigation menu. Follow the instructions on the page to complete your installation.
- If you don’t already have a Social Login account and API key, go here to sign up.
- If you have already created an account and site for your WordPress blog, enter your API key into the box and click Save.
- Once you enter the API key, configuration options are displayed. If you have not yet configured your Janrain Social Login solution, detailed instructions are available here.
- Due to the email address requirements in WordPress 3, users will be prompted for an email address if the identity provider does not supply one. If the chosen provider’s settings do not include email as a profile option, the plugin will require the user to enter an email address.
Common Questions / Issues
How do I enable Facebook, Twitter, Myspace, and Live ID authentication?
- Go to https://dashboard.janrain.com/signin and sign in.
- Click the Provider Configuration link on your application dashboard.
- Toggle between each provider on the right-side panel.
- Click the blue Configure button for instructions to enable each provider. All four of these providers require you to obtain an API key and secret for your individual site and accept the developer terms of service.
The plugin works, but authentication fails when the token is returned.
Using custom port numbers is one possible cause.
The plugin strips port numbers from URLs, and this behavior will cause an error when Janrain attempts to return a token to a URL. For example,
localhost:1234. Either add the path to your host file to avoid using a port number or add the URL directly to the code.
To add the URL to the code:
- Open the
rpx_v.php file in the
- On line 407, replace the variable value in the
janrain.settings.tokenURL function with the URL.