Facebook setup not working

The setup for Facebook is not working. In the Facebook App Setup when i Facebook setup Domain field and then I add a Platform in Facebook and enter the OneAll it says both must match. What should I do to fix this?

Answers

  • Hi,
    Try not putting anything in the App Domains field.
    Platform should be your OneAll API endpoint (http://your_app.api.oneall.com).
  • Thank you that helped.
  • Actually, I am now having another issue.

    I have facebook and twitter social login setup. The Twitter login works great but the Facebook login redirects me to the wrong page:

    http://mydomain/login/?oa_social_login_source=login

    I also changed the redirect settings on the Wordpress Plugin settings page to my homepage. It still redirects to the link above.

    How do I fix it where they get redirected to my homepage?

    Thank You
  • Hi,
    Do you then get a blank page?

    This can happen when the redirect URL is being removed/blanked out (there could other reasons). It could be one of several plugins.
    Could you try debugging by adding the following logging information:
    function log_redirection ($url) { global $wp_filter; error_log ('registered redirect actions: '. print_r ($wp_filter['login_redirect'], true)); error_log ('redirect url: '. print_r ($url, true)); return $url; } add_filter ('login_redirect', 'log_redirection', 100);
    You may need to enable, temporarily, logging, as (https://codex.wordpress.org/Debugging_in_WordPress), in wp-config.php:
    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    And look for these lines in the WP log file (wp-content/debug.log)?
    If there's sensitive info, send a message or email.

    Thanks.
  • Scott_GainesScott_GainesMember
    edited October 2015
    I just installed the Total Security plugin to help with displaying debugging info and also modified the wp-config.php as you described above.

    where do I add the logging information that you shared above?

    function log_redirection ($url)
    {
    global $wp_filter;
    error_log ('registered redirect actions: '. print_r ($wp_filter['login_redirect'], true));
    error_log ('redirect url: '. print_r ($url, true));
    return $url;
    }
    add_filter ('login_redirect', 'log_redirection', 100);
  • Hi,
    This should be in the functions.php file for your theme.
    You can access the file (edit it) via the Admin pages: Appearance / Editor / Theme functions.

    Thanks.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.