I am performing certain action when user is logged in
add_action( ‘wp_login’, array( $this, ‘wp_login’ ), 10, 2 );
This action is executed when an user is logged in using username and password, however it is not executed when the user is logged in using social auth plugin.
How can i execute a function when an user is logged in using social logins using your plugin?
Is there any specific custom action that I can hook into?
]]>Hi,
Can we use this plugin in a commercial product lets say a WordPress Theme intended for sale online?
Please let us know.
Thanks.
Greetings. I just wanted to let you know that your plugin breaks when used on WP Engine with SSL to do Google’s oAuth2 authentication. I filed a support ticket with WP Engine and they fixed the issue by modifying your code. Here is the relevant information:
Greetings. We recently got an SSL cert enabled for our website. Problem is it breaks the Google Auth we have in place. Visit (you will need to clear your domain cookies first):
https://www.example.com/wp-login.php
Click the “G” in the lower left hand corner and attempt to auth with your google account. You will see an error like:
Secure Connection Failed
An error occurred during a connection to https://www.example.com:80. SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long)
Looking at the URL it is trying to load:
https://www.example.com:80/wp-content/plugins/socialauth-wp/connect.php?provider=Google
Notice hos the :80 is inserted at the end of the domain being loaded via https. This is what is causing the problem.
This appears to be a problem with an nginX setting: https://meta.discourse.org/t/invalid-redirect-uri-in-google-oauth2-api-call-http-instead-of-https/18105?u=neil
Can you check your web server settings to make sure they can handle these redirects?
From WP Engine (after much back and forth):
In the /hybridauth/Hybrid/Auth.php file I saw the following lines of code:
( ($protocol === ‘https://’ && $_SERVER[‘SERVER_PORT’] != 80) || ($protocol === ‘https://’ && $_SERVER[‘SERVER_PORT’] != 443) )
It appears that this line of code is what is specifying the port to be used.
I’m happy to say that it appears that it looks like this is now working when we test it on our end here.
Since this appears to be a coding related issue, I would recommend reaching out to the plugin developer and letting know what changes we had to make to the code to get it working on our platform here so that they can update the plugin. If this is not corrected in the next update, it may overwrite the changes we made to the file breaking the social login function again.
This was the change we made to the /wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Auth.php file:
Commented lines 389-393
Please check over this on your end and let us know if you are still running in to problems or if you have any questions or concerns that we can help with.
Please either let me (and I will let WP Engine) know if this is an inappropriate fix or update your plugin with this fix so it doesn’t continue to break.
Thank you!
]]>Twitter login and register is broken .It gives me error .
There was some unexpected error, when trying to login with Twitter
Following are the details of error :
Some strange error occured, Please try again Later…
Error reason: User profile request failed! Twitter returned an error. 401 Unauthorized.
]]>I have the plugin running, works fine for WP logins, but doesn’t appear on the BuddyPress login screen. Any idea how to get this running on BuddyPress on the same install?
]]>um for users that sign in with google and dont have a profile image…
what image is used?
it looks like my image is being used for everyone…..
How do I get the API Key and APP secret values for Facebook, Twitter and Linkedin for my Socialauth-WordPress plugin installation on my website?
Just not working on my website, please kindly check it out and see error message generated.
https://www.socialecosystemlab.com/wp-login.php?action=register
]]>wordpress social auth plugin automatically adds this line to the head of every page.
<meta http-equiv=”X-XRDS-Location” content=”https://www.mysite.com/wp-content/plugins/socialauth-wp/hybridauth/index.php?get=openid_xrds” />
I am not sure what this line does to the site but it throws a validation error.
What does the meta line does to the site, is it mandatory?
How to remove that line? or Fix it?
]]>After login in with facebook the browser status says waiting on https://mydomain.tld then jumping to waiting on https://facebook.com.
This loops endless.
When i click the browsers back button and click again on the Login Button on my page i’ll get redirected to the correct page and i’m logged in.
So I have it working with LinkedIn only and it seems to be working ok – took out all Login form input on the login/registration page, and kept only the LinkedIn connection because I want to force all users to create accounts using their linkedIn accounts, and not give them the option to create them directly via WP.
All seems to be working pretty well, but the page that the user is supposed to be redirected to when they first login is not changing no matter what I put in that input box in the admin backend area, it just always redirects to site_url/login. It’s as if in the admin area, the call for the “Home Page” ie, SocialAuth_WP_user_home_page is broken.
Also, the avatar is pulling the default WP avatar, not the LinkedIn one.
I do also have Buddypress installed, but I don’t think that’s the culprit.
]]>Hi Developers,
Is there any plans to make this plugin compliant with “Multisite” and “BuddyPress”?
Please advise.
Thank you!
]]>when trying to authenticating I keep getting “You cannot access this page directly”. This seems to be a wordpress issue with hybridauth, as running hybridauth example files at the root of my wp install seems to work fine, but “inside” wordpress doesn’t seem to work.
Some have suggested this is a session issue and i believe this is related as it is failing in endpoint.php and the authInit() method because there is no config key in my session.
But i know that sessions are working correctly and it is writing some information to the session namely the ‘php_session_id’ and ‘version’ keys but not the ‘config’. There is something else in wordpress that is causing that key not to be set correctly.
Thanks,
Bob
anyone have thoughts or can help??
]]>Hi,
I have installed the plugin, thanks, it works fine with Facebook, but I need the logged people in the users menu. It is possible, to see users between, who registered separately for my site?
Thanks.
Hello,
1. If a visitor is on page or a post and click login with one of the functions of your plugin it will redirect him/her to the page or post that he/she was or to the homepage?
2. If someone registers from facebook and make a comment, will it be automatically published on his/her wall/timeline? Also, if the user connects with twitter will there be too an automated publication on his/her profile? If not, can you add that function?
3. Support multi site?
]]>on my multisites when i go to:
/wp-admin/options-general.php?page=socialauth-wp-settings
&
/wp-admin/admin.php?page=SocialAuth-WP-contacts
I get this message :
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/xxxx/public_html/wp-content/plugins/socialauth-wp/social-auth-wp.php on line 101
Just checking out this plugin and wanted to know if there is a widget available. I didn’t see one, but I wanted to make sure I wasn’t just missing it.
]]>First thank you for making an amazing plugin it’s greatly appreciated!
Is it possible to allow authorization of more than one provider per user ID?
One default provider (first one linked) as a master and sub accounts to access the data on those networks too
Also I was researching persistent sessions here which files need to be updated to allow for this or can this be an option in the next version?
Thank You
]]>Hi,
I’ve installed and set up SocialAuth-WordPress and it’s working great on the desktop browser.
Wether I login using wordpress or a social network, it’s going through and if i close the browser and reopen it, the user is still logged in.
On iOS though, it’s not the case, if I access my website with mobile Safari, i can access without any trouble as well but if I close safari completely and then reopen it then i have to login all over again. This only happens with the social login though. If i login with the wordpress system then the login is peristent. Not with any of the social logins.
Any idea where this could be coming from and how to sort it out?
Thanks a lot!
]]>Because of this function :
social_auth_wordpress_get_avatar
… in user lists (such as ../wp-admin/users.php) you got all user with picture of the one connected !
]]>1/ Adding shortcode to use in themes :
add_shortcode(‘sc_render_login_form_SocialAuth_WP_front’, ‘sc_render_login_form_SocialAuth_WP’)
2/ function “sc_render_login_form_SocialAuth_WP” => add “apply_filter” on images url used => to allow changing images used for login buttons (for example having an array with “name” => url ( “linkedin” => …, …) to easily modify each of them in a theme.
3/ To be able to display one connect button at a time in a theme.
4/ to be able to change permissions (ex: facebook “scope”) to use facebook js sdk in themes
]]>Ok. I’v tested to see what happens if a user removes the app from his FB profile after register on my site with FB login option.
1. The user data remain in my database
2. I’v come back with the same FB account (after removing the app) and tried to login again with FB and i recived this https://i47.tinypic.com/2dminwg.jpg
Maybe i haven’t set the FB app correctly.
I’v searched the internet and find that i must enable Reset Client Token.
I enter the FB app that i’m using for this & click Enable & Save. After clicking the Save button, the Reset Client Token goes to Disable.
I don’t know if this is the right thing to do, thats why i’m asking for help, to resolve this issue.
I want, if a user come back after he removed the app from his FB profile, to have the permission to login again with FB option and to not create another user on my database. I want him to use the same user that he had on the 1st time.
Thank you!
]]>Another thing.
I have only the facebook option active & if someone register with this & not with regular option, the name of his username will be his email address. Why not make the facebook name his username. If is not possible the full name, make it just the 1st name.
I’m using bbpress & when you are viewing the profile of a user who used the facebook option, in the website address bar will show something like this https://www.domain.com/forums/users/namegmail-com/
It is not ok that his/her email is public.
Can i get some help with this?
Thank you!
Have a nice evening.
]]>On this page
https://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html
developers wrote, that “hd” => “domain.com” would prevent registration from the other than this domains. I’ve added this parameter to /wp-content/plugins/socialauth-wp/hybridauth/config.php
No luck… All are able to register. From gmail.com, etc. Why is not working?
It looks like this by the moment:
“Google” => array (
“enabled” => true,
“keys” => array ( “id” => “”, “secret” => “” ),
“scope” => “”,
“hd” => “neededdomain.com”
),
Sincerely,
Pavel.
Another thing is the logout message that is showing after user click Logout
My wish is, when someone clicks Logout, just to disconnect & to show main page of my website, not this message.
]]>Hello. I use the plugin just with facebook option.
When ppl login with FB (using this plugin) the avatar from author of an article is showing the logged user pic from FB. I do not want the article author avatar to be changed with the one of the logged in user.
Original image from author at the end of article
https://www.styles.ro/fb1.jpg
Picture after normal user login
https://www.styles.ro/fb2.jpg
Can you help me with this?
Thank you!
Just installed this plugin on wp 3.4.2 and working on a theme that based on Roots Theme.
After installing I configured FB, and enabled Yahoo & Open ID. But none of them are really working. For FB, I get the error: “An error occurred. Please try again later.”
For OpenID & Yahoo, I got a blank page (with 404 not found) opened in a popup… with this url in case of yahoo.
https://www.example.com/plugins/socialauth-wp/connect.php?provider=Yahoo
Please advise what could be the problem, and how to fix it.
Update:
While trying to login using Yahoo on different browser.. instead of 404, I got following error.. might be helpful to you to figure out what went wrong.
Warning: strpos() [function.strpos]: Offset not contained in string in /home/username/public_html/wp-content/plugins/socialauth-wp/hybridauth/Hybrid/thirdparty/OpenID/LightOpenID.php on line 47
Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/wp-content/plugins/socialauth-wp/hybridauth/Hybrid/thirdparty/OpenID/LightOpenID.php:47) in /home/username/public_html/wp-content/plugins/socialauth-wp/hybridauth/Hybrid/Auth.php on line 354
]]>
Hi, I keep getting this error when trying to log in via Facebook:
You cannot access this page directly.
No other errors. The App ID and secret are correct. The Redirect URL is set as the plugin recommends.
Any idea? thanks.
]]>Hi,
Great plugin, works nicely however I have a few issues.
It’s annoying that this plugin does not comply with the WordPress registration setting.
If I have registrations disabled in settings, a new user should not be created when the user logs in and an account for that email doesn’t exist.
Could you please add a setting to disable registration or comply with the WordPress registration setting?
Also an option to remove the ‘My Contacts’ shortcut would be great.
Also an option to take the user back to previous page upon login.
]]>All other options after yahoo display options boxes when selected.
I am sure that this probably worked in previous versions, but it is not working in the version that I just downloaded into the installation.
I installed your plugin on wordpress site. I could configure Twitter, Facebook , Linked In and Yahoo accounts. They are working nice.
But unfortunately I am unable to use Google login functionality.
Possibly I am making some mistake in genreating API ID and key and configuring them.
Do you have any readme or help doc , whcih I can follow step by step for configuring Google authentication using SocialAuth ?
I created an API account at link and addeed that info in setting section in wordpress dashborad, but it did not work.
https://code.google.com/apis/console/
Error comes out at screen when trying to login using google authentication
———————————————————-
There was some unexpected error, when trying to login with Google
Followin are the details of error :
Some strange error occured, Please try again Later…
Error reason: User profile request failed! Google returned an invalide response.
———————————————————-
I picked info from below tags from google api account
Client ID:
Client secret:
Redirect URIs: https://stop11.com/wp-content/plugins/socialauth-wp/hybridauth/?hauth.done=Google