WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Social Connect]. Only works when logged out from Facebook. (3 posts)

  1. Brostory
    Member
    Posted 2 years ago #

    Hello.

    I am using Social Connect to enable users to log in and register via Facebook. I use it as a widget in my sidebar, as I icon on my forum (Simple:Press) and as a icon at /wp-admin.
    Here's the thing.

    If the user is logged out from Facebook then the icon works perfectly everywhere.
    However if a user is already logged in to Facebook, which let's face it most users will be, then only the /wp-admin works.
    The widget and forum icon opens a new Java window that is completely blank. In the address bar is the following:
    http://brostory.com/wp-content/plugins/thenbrent-social-connect-3c44c33/facebook/callback.php?code=AQCe9O2yz4DJZyU9u7uLL09JTJVaDHTKks7iYMLA7pZicJMZWqy2Ahx7j1Ux4VIJfKVu2OAL9_6F8808RpddQ-BxIVg4YSL3RMTMV8tIGRal4DXVZtW9kjkZxXSJy2tw2UL4iHyAHcLAXUaDY6TyMZNvneQxhmIjsw7f5GYE1m504oF4xx6pCcgXSJEk7BHBVls#_=_
    It still works for /wp-admin icon without any issues.

    Obviously I need the plugin to work for logged in Facebook users.

    I've searched the forum and found people with similar problems, yet no replies or solutions.

    Note: I am the admin of the Facebook page and hence the API key etc. Can this be related? Will try to get one of my friends to try.

    Any help greatly appreciated.
    Thank you!

  2. Brostory
    Member
    Posted 2 years ago #

    Can't edit for some reason so new post.
    It seems that the frontpage works fine but the /forum directory does NOT work.
    On the Facebook development I have App Domains which is simply the domain name and Website with Facebook Login which is the domain name as well. I tried changing the later to /forum and then I get when trying from the forum page:

    {
    "error": {
    "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
    "type": "OAuthException",
    "code": 191
    }
    }

  3. Brostory
    Member
    Posted 2 years ago #

    Upon further inspection I noticed the following code on the blank page:

    <html>
    <head>
    <script>
    function init() {
      window.opener.wp_social_connect({'action' : 'social_connect', 'social_connect_provider' : 'facebook',
        'social_connect_signature' : '602657f0745fe4821c56cbb8f33906ff4bb0dbd35b86d3daebccd3dd26a7ec7f',
        'social_connect_access_token' : 'AAADYZCW69VkQBAIJpqPrrePrmFZA44WZCC18IsHPzIGRsqaCMvGeZBYW7WW6SiNUQLOZACl0l4eMOGmClBZAvUmeRQx5WblYLxPV8DXSBU5wZDZD'});
    
      window.close();
    }
    </script>
    </head>
    <body onload="init();">
    </body>
    </html>

Topic Closed

This topic has been closed to new replies.

About this Topic