/

General Support - Social Login - Facebook


Social Login - Facebook

Back to User Guides

Important

  • Please note that Facebook often changes its Developers service and the user interface may change after publishing this article. If you notice any error in our documentation please let us know at support@cminds.com.
  • All Facebook Apps require a secure protocol (HTTPS) for Redirect URIs since March 2018. Check Facebook's blog for more information.
  • This document was last updated in: August 2018.

What is Social Login

Once you have enabled the WordPress Facebook login option, users will be able to register, log into your Q&A using their Facebook profile, and submit Questions or Answers to your CM Answers discussion forum (this is the same for the CM Download Manager Plugin or CM Registration). 

This setting can be customized to specifically allow Facebook authentication within the plugin settings panel. If this setting is left empty, the Facebook login option will not appear at the authentication stage.


Tutorial

To register your site with a WordPress Facebook login, take the following steps.

  1. Create a Facebook developer account on https://developers.facebook.com/
  2. Create a Facebook App
    1. Go to https://developers.facebook.com/ and under the My Apps drop-down menu, click on the Add a New App.

    2. Input any name desired and your email address.You may have to solve a reCaptcha test before the next step.
  3. Add Facebook Login
    Head to the Dashboard. There, add the product "Facebook Login" on the  Product Setup page.
    1. You will be prompted with the Quickstart screen, but there is no need to use it.
      Instead, check its settings.
  4. Enter the OAuth redirect URL
    In the  Client OAuth Settings section, enter the Valid OAuth redirect URl.

    The Valid OAuth redirect URl can be found in the plugin's settings, next to the Facebook App Settings. It usually ends with "/facebook/int_callback". An example from the Answers Pro:

    Save Changes at the bottom of the page.

  5. Make your App public
    Go to the App Review page (on the sidebar menu)
     and make your App public:
  6. Take note of the App ID and the App Secret
    Click on Settings → Basic and you will see the App ID and the App Secret in the Dashboard box. Take note of them.
  7. Copy your App ID and Secret to the CM plugin's settings
    • In the plugin settings panel, add these App ID and App Secret values in the following fields:

Then save the plugin settings. Well done! Your WordPress Facebook login is up and running!


Facebook connection errors can occur for several reasons:

  1. Problem: Facebook App was defined in sandbox mode. 
    1. Solution: Please check your app definitions
  2. Problem: Category was not defined for App. 
    1. Solution:  Please check your app category definitions.
  3. Problem: Your server configuration needs to be modified. 
    1. Solution: Please check if allow_url_fopen is enabled in global php.ini file on the server. For more info please check stackoverflow.
  4. Problem: Facebook connection errors can also be caused by the Facebook authentication code being too long. In that case, the server responds with 414 Request- URL Too Long, when Facebook sends its authentication code. 
    1. Solution: Please change the setting LimitRequestLine in Apache configuration to a higher value, or contact the administrator.
  5. Problem: App is not available for public users. 
    1. Solution: Please change your Facebook app to public accessibility mode.

Get more information about the CM Answers WordPress Plugin

Find other WordPress products at the CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

Visit our support center to open a Support Ticket