E107: Social plugin issues

Created on 30 Mar 2017  路  18Comments  路  Source: e107inc/e107

Not work for me plugin settings and Facebook, Github and Twitter login / registration.

See this video.

My e107 version: 2.1.6

Help Wanted awaiting feedback testing required

All 18 comments

Try clearing all your caches (e107 and browser). Does this help?

I know that this is something different, just to have all related issues in one list.
https://github.com/e107inc/e107/issues/2127

@Moc Cleared all e107 and browser caches.
No changes were made.

Ok, now work for me plugin settings.
Not work Facebook, Github and Twitter login / registration.

[5]Authentication failed! Facebook returned an invalid user id.
[5]Authentication failed! Twitter returned an error.
Github: [5]Error SQL Insert Error

@yesszus hybridAuth has just been upgraded. Please test again.

Facebook login / registration now work for me.

[5]Authentication failed! Twitter returned an error.
Github: [5]Error SQL Insert Error

Would anyone test this?

I will test the Twitter part today.

And work?

With LinkedIn I got error (but I have ID and secret key inserted):

image

Ok, maybe reason for LinkedIn:

there is this check in Provider_Model_OAuth2.php:

    if (!$this->config["keys"]["id"] || !$this->config["keys"]["secret"]) {
      throw new Exception("Your application id and secret are required in order to connect to {$this->providerId}.", 4);
    }

but values for $this->config["keys"] are:
image

$this->_config() in user_handler.php
image

for facebook in Providers/Facebook.php there is correct key in $this->config["keys"]

image

FACEBOOK
_- signup_
This part of code is confusing and in results it looks like FB signup doesn't work

            if($uid = $sql->retrieve("user", "user_id", "user_xup='".$sql->escape($this->userId())."' ".$insert." OR user_loginname='{$userdata['user_loginname']}' OR user_name='{$userdata['user_name']}'"))
            {
                // $this->login($redirectUrl); // auto-login
                e107::getUser()->loginProvider($this->userId());

                if($redirectUrl) 
                {
                    e107::getRedirect()->redirect($redirectUrl);
                }

                return false;
                // throw new Exception( "Signup failed! User already exists. Please use 'login' instead.", 3);
            }

If user with the same user_name exists (in my case) there is no message, nothing, only displaying empty signup form again (because $redirecturl = signup.php
In my case long time ago LinkedIn created user with the same user_name (I forgot it) but with different email and xup.

After deleting that user, facebook signup works. But I changed API version on Facebook to 2.8 (before 2.4, latest 2.10) to have the same version as is needed HybridAuth. I don't know if this is important.

_login_
login works now too. I think that problem was that with LinkedIn I had the same user_name. Its used for Display name and I just checked you can have 2 users with the same user_name so maybe that check is reductant.

Registrations doesn't work.

[5]Authentication failed! Twitter returned an error.
Github: [5]Error SQL Insert Error

@yesszus @Jimmi08 @tetolk Are the issues above still occurring? If yes, please specify in detail what the issue is and how it can be reproduced.

Registrations doesn't work.

[5]Authentication failed!
Twitter returned an error.

Github: [5]Error SQL Insert Error

LInkedin:
image

This address needs to be added to linkedin to get this work:
image

But admin says
image

There is still no message that I am trying to create account with the same email adress that is belong to registered user.

Everything works. The problem is that you do not know how, or maybe do not want to read carefully how to set up. Each provider has its own settings. Including callback url.
e107 social plugin authorization through Facebook, Twitter, Google and Github works great.

Thank you for the confirmation @net1313 ! :+1:

Closing.

Was this page helpful?
0 / 5 - 0 ratings