Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    Unfortunately there is no such feature yet. But if the user tries to login using an Facebook account with the same e-mail address used to register in WP the accounts will be linked.

    Thread Starter Václav Greif

    (@vasikgreif)

    Thanks – are you planning to add this feature, or should I try to hack it together myself?

    Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    I don’t think I will have time to add this feature in the near future but I think it is a good idea.

    If you create it yourself, please consider sharing it by creating a pull request in our GitHub repository:

    https://github.com/thenbrent/social-connect/

    Ideally we should create this option for all the supported social logins.

    Thread Starter Václav Greif

    (@vasikgreif)

    Hmm, should be quite easy, adding something like

    elseif ( $action == "link_account" ) {
    		update_user_meta( get_current_user_id(), $sc_provider_identity_key, $sc_provider_identity );
    
    		$user_data  = get_userdata( get_current_user_id() );
    		$user_login = $user_data->user_login;

    should do that, I think. I just don’t know how to pass the “action” variable.. Could you help me?

    Thread Starter Václav Greif

    (@vasikgreif)

    It would be of course possible to store $_SESSSION variable “account-link” to check if the user wants to link accounts, but I’m pretty sure there has to be easier way to pass something to the sc_social_connect_process_login function…

    David

    (@divorcetheworld)

    This is my only gripe with the plugin, which, otherwise, has proven to be excellent.

    I would also like to see LinkedIn as a provider, but this issue is more of a priority. It does, of course, work out as is when a users Fb email is the same as their account email. However, since Twitter does not supply an email address, any existing user who logs in via twitter is actually creating a new, separate account.

    Do you have a donation page?

    Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    @vasikgreif I’m not sure if I’m following you in the code you sent. Anyway I agree that this is a very useful feature and I have created an issue in the github repository: https://github.com/thenbrent/social-connect/issues/40. I will look into this when I have some time.

    @david I’m glad to hear that you are happy with the plugin. You will find a link to the donation page in the right sidebar in the plugin home page (“Donate to this plugin”). Thanks for asking.

    Thread Starter Václav Greif

    (@vasikgreif)

    I mean, I think adding something like:

    function sc_social_connect_process_login( $is_ajax = false, $link_account = false ) {

    and later:

    } elseif ( $link_account ) {
    		update_user_meta( get_current_user_id(), $sc_provider_identity_key, $sc_provider_identity );
    
    		$user_data  = get_userdata( get_current_user_id() );
    		$user_login = $user_data->user_login;
    
    } elseif ( $user_id = email_exists( $sc_email ) && !$link_account) { // User not found by provider identity, check by email
    		update_user_meta( $user_id, $sc_provider_identity_key, $sc_provider_identity );
    
    		$user_data  = get_userdata( $user_id );
    		$user_login = $user_data->user_login;

    Than it should be enough to just pass the $link_account = true to the function somehow, when clicked on the link account button (these might be the same as the sc login button, only with some class).

    Not sure if that helps…:-)

    Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    Thanks for your input. I hope to have some time to in the next weeks to address this new feature.

    David

    (@divorcetheworld)

    Is there any movement on this front?

    Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    Unfortunately no. I’ve been busy these months with no time to implement new features in this plugin.

    Are there any devs out there who want to discuss the implementation of this feature with me? Maybe we could work together to try and make it happen…

    Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    @shibbymintay thanks for your initiative.

    Ivo Pereira

    (@ivopereira)

    @shibbymintay are you still willing to do this?

    I have a project with a near deadline that I needed to use this feature. As it is not been developed so far, I guess I’m gonna develop it after the project. Let me know if you’re still interested.

    @RodrigoPrimo no news on this, right? Not even some sketches?

    As @vasikgreif referenced, I guess it would not be too much of work to do this. I was even thinking that the link should be done automatically, as user clicks a social network icon, no matter which email the user has.

    If the user clicks the button, he wants to identify a new social network as its own ID. Following this idea, however I’m afraid code is not compatible with the current version.

    Plugin Author Rodrigo Primo

    (@rodrigosprimo)

    No progress on this so far.

    Pull requests are welcome ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Link WP account with social account’ is closed to new replies.