Resource icon

Social Network Authentication (Twitter, Google, VK.com) 1.0

No permission to download
Does this addon needs to be updated also?

Chris Deeming updated Friend Inviter with a new update entry:

Update to fix Twitter



On 3rd April, Twitter kindly changed their API without telling anyone in advance

This update resolves that issue.

Known issues: There are still a few known issues with the add-on if you don't have any Twitter followers or Yahoo contacts. These services work correctly if you have at least one contact.



Read the rest of this update entry...
 
Seems to be unaffected.

The issue occurs if you try to obtain an access key without providing the callback URL and oauth verifier. Both of these were optional until Twitter decided to change that last week.
 
  • Like
Reactions: rdn
Facebook and twitter works flawlessly but Google returns following error:

Code:
Error: redirect_uri_mismatch
The redirect URI in the request: http://www.domain.com/register/google did not match a registered redirect URI
Learn more
Request Details
from_login=1
scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
response_type=code
access_type=online
redirect_uri=http://www.domain.com/register/google
state=profile
as=-1aa396659cfd6559
display=page
pli=1
client_id=177723396765.apps.googleusercontent.com
authuser=1
hl=en
 
First attempt to install:
Code:
mysqli::query(): (42000/1305): SAVEPOINT xf468869f83ca55c8d1a52600f88693f2f does not exist
 
    XenForo_Application::handlePhpError()
    mysqli->query() in XenForo/Db.php at line 145
    XenForo_Db::_execQuery() in XenForo/Db.php at line 83
    XenForo_Db::commit() in Social/Manufacture.php at line 83
    Social_Manufacture::build()
    call_user_func() in XenForo/Model/AddOn.php at line 214
    XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
    XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
    XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/icongames.ru/public_html/admin.php at line 13

Second attempt to install:
Code:
mysqli_stmt::execute(): (42S21/1060): Duplicate column name 'google_auth_id'
 
    XenForo_Application::handlePhpError()
    mysqli_stmt->execute() in Zend/Db/Statement/Mysqli.php at line 208
    Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
    Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    Zend_Db_Adapter_Abstract->query() in Social/Manufacture.php at line 94
    Social_Manufacture->_installVersion1() in Social/Manufacture.php at line 80
    Social_Manufacture::build()
    call_user_func() in XenForo/Model/AddOn.php at line 214
    XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
    XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
    XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/icongames.ru/public_html/admin.php at line 13

In second case I'm UNDERSTAND WHAT happened. But first case... Anybody help me?

TMS already installed, php 5.3.3, CentOS 6.4 x64, Xcache 3.0.1, XenForo 1.1.4
 
I'm find suggestion for my first case.
Go to \library\Social\Manufacture.php and commented ALL(4 times) this lines:
Code:
//XenForo_Db::beginTransaction($db);
//XenForo_Db::commit($db);
Then install add-on as usually.
 
I need help, sidebar on the top is showing three social medias (facebook, google, twitter) that is working correctly.

So below Sign up Now (right side), it show only facebook button, why not showing Google and Twitter?
 
Hi please can I have some help?

We have this installed on our forums http://www.precursorgames.com/forums/index.php

The FB and Twitter stuff works fine but I can get G+ to work correctly. It DOES work for registering an account however when using the Google Integration menu in the users profile users get the following message:

---------------------------------
Error: redirect_uri_mismatch

The redirect URI in the request: http://precursorgames.com/forums/index.php?register/google&assoc=1 did not match a registered redirect URI
---------------------------------

The settings I've put in the google app are:

Client ID:
xxxxxxxxxxxxx.apps.googleusercontent.com
Email address:
xxxxxxxxxxxxx@developer.gserviceaccount.com
Client secret:
xxxxxxxxxxxxxxxxxxxxxxxxxx
Redirect URIs:http://precursorgames.com/forums/index.php?register/google

http://precursorgames.com/forums/index.php?register/google?assoc=1

http://precursorgames.com/forums/register/google

http://precursorgames.com/forums/register/google?assoc=1

JavaScript origins:http://www.precursorgames.com
 
Last edited:
I hope that's not a direct cut/paste and that each one is on a new line (as the instructions state).
Here is what mine is (and as far as I know it works)
Code:
http://twowheeldemon.com/oauth2callback
http://twowheeldemon.com/register/google
http://twowheeldemon.com/register/google?assoc=1
 
please anyone?

I'm not really sure where you are talking about? This one?
example.webp

If so, in TMS for sidebar_visitor_panel

Search for
Code:
<xen:if is="{$visitor.user_id}">

<div class="section visitorPanel">
    <div class="secondaryContent">
   
        <xen:avatar user="$visitor" size="m" img="true" />
       
        <div class="visitorText">
            <h2>{xen:phrase signed_in_as_x_sidebar, 'name={xen:helper username, $visitor, 'NoOverlay'}'}</h2>       
            <div class="stats">
            <xen:hook name="sidebar_visitor_panel_stats">
                <dl class="pairsJustified"><dt>{xen:phrase messages}:</dt> <dd>{xen:number $visitor.message_count}</dd></dl>
                <dl class="pairsJustified"><dt>{xen:phrase likes}:</dt> <dd>{xen:number $visitor.like_count}</dd></dl>
                <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
            </div>
            </xen:hook>
        </div>
       
    </div>
</div>
<xen:else />
<div class="section loginButton">       
    <div class="secondaryContent">
        <label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="inner">{xen:if $xenOptions.registrationSetup.enabled, {xen:phrase sign_up_now}, {xen:phrase log_in}}</a></label>
    </div>
</div>
</xen:if>

Replace with
Code:
<xen:if is="{$visitor.user_id}">

<div class="section visitorPanel">
    <div class="secondaryContent">
   
        <xen:avatar user="$visitor" size="m" img="true" />
       
        <div class="visitorText">
            <h2>{xen:phrase signed_in_as_x_sidebar, 'name={xen:helper username, $visitor, 'NoOverlay'}'}</h2>       
            <div class="stats">
            <xen:hook name="sidebar_visitor_panel_stats">
                <dl class="pairsJustified"><dt>{xen:phrase messages}:</dt> <dd>{xen:number $visitor.message_count}</dd></dl>
                <dl class="pairsJustified"><dt>{xen:phrase likes}:</dt> <dd>{xen:number $visitor.like_count}</dd></dl>
                <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
            </div>
            </xen:hook>
        </div>
       
    </div>
</div>
<xen:else />
<div class="section loginButton">       
    <div class="secondaryContent">
        <label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="OverlayTrigger inner">{xen:if $xenOptions.registrationSetup.enabled, {xen:phrase sign_up_now}, {xen:phrase log_in}}</a></label>
<div align="center">
<xen:if is="{$xenOptions.facebookAppId}">
<li><a href="{xen:link register/facebook, '', 'reg=1'}" class="fbLogin"><span>{xen:phrase login_with_facebook}</span></a></li>
</xen:if>
<xen:if is="{$xenOptions.twitterConsumerKey}">
<li><a href="{xen:link register/twitter, '', 'reg=1'}" class="twitterLogin"><span>{xen:phrase social_login_with_twitter}</span></a></li>
</xen:if>
<xen:if is="{$xenOptions.googleAppId}">
<li><a href="{xen:link register/google, '', 'reg=1'}" class="googleLogin"><span>{xen:phrase social_login_with_google}</span></a></li>
</xen:if>
</div>
    </div>
</div>
</xen:if>

That should give you the Google & Twitter and it will make the sign-up page pop up in an overlay.
 
I hope that's not a direct cut/paste and that each one is on a new line (as the instructions state).
Here is what mine is (and as far as I know it works)
Code:
http://twowheeldemon.com/oauth2callback
[URL]http://twowheeldemon.com/register/google[/URL]
[URL]http://twowheeldemon.com/register/google?assoc=1[/URL]

yep they're all on a new line, bad editing copy/paste here on my part

As I said - it half works. On the sign-in side it works and on the integration option it doesn't
 
yep they're all on a new line, bad editing copy/paste here on my part

As I said - it half works. On the sign-in side it works and on the integration option it doesn't

I actually turned the "social integration" portion of google off and just use it for authentication purposes - as it was slowing the site down some (and was getting gigged in most of the page speed site checks).
 
Okay so I finally moved this to the 1.1 Twitter API and I am running into auth issues. Here is the error I am getting back:

Code:
Array ( [errors] => Array ( [0] => Array ( [message] => Bad Authentication data [code] => 215 ) ) )

Anyone able to get this working for the new Twitter API 1.1?[/code]
 
Is there a relatively easy way to check the registration stats? I'm curious how many folks are registering using these networks.
 
  • Like
Reactions: rdn
Back
Top Bottom