Viewing 3 replies - 1 through 3 (of 3 total)
  • I’d like to get an answer on this as well. Right now, this plugin is preventing facebook from properly getting site data.

    Checking the facebook debugger shows errors about the redirects. Disabling the plugin allows facebook to properly scrape the content.

    I hacked up a fix for this:

    in the plugin file geo-redirect.php, go to the end of the file and replace the line:

    if (!is_admin()) {
        do_action('check_client_location');
    }

    with:

    if (strpos($_SERVER['HTTP_USER_AGENT'],'facebook') === false) {
        if (!is_admin()) {
            do_action('check_client_location');
        }
    }

    This will check the useragent string to see if it contains the word facebook, and will stop the redirection if it does. This shouldn’t be an issue for facebook since users will probably be sharing links that already went through the redirection to the proper language page, so facebook should still get the proper language without the redirect.

    Hi rmmoul, help! ??

    I have the same issue with WC Social Login..
    When I click on the Facebook Login button on the redirected pages, I got errors because the Facebook app auth links are redirected too.. (I tried to hack the WC SL plugin adding ?noredirect on generated links but it doesn’t work in this direction)

    The url should be https://domain.com/wc-api/auth/facebook/int_callback?, but it become https://domain.com/languagesubfolder/wc-api/auth/facebook/int_callback? and my Facebook app doesn’t connect..

    I tried your fix but it doesn’t work.

    Do you have any idea of how I can override the geo redirection to not work on this link?

    Thanks!

    Phil

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘facebook parser’ is closed to new replies.