rodrigoprimo / social-connect

WordPress plugin for signup/login using social media providers.
http://wordpress.org/extend/plugins/social-connect/
GNU General Public License v3.0
73 stars 40 forks source link

New hook - social_connect_after_login #60

Open pknazqul opened 10 years ago

pknazqul commented 10 years ago

Please add new hook: do_action( 'social_connect_after_login', $user_id, $social_connect_provider, $social_access ); where: $user_id - user id in wordpress; $social_connect_provider - facebook, twitter and etc. $social_access: social_connect_access_token - facebook; social_connect_twitter_identity - twitter; social_connect_openid_identity - google social_connect_openid_identity - yahoo social_connect_openid_identity - wordpress

Thanks.

rodrigoprimo commented 10 years ago

Could you please give more details? Where you want to place this hook? Why you need it? Have you checked the existent hooks like 'social_connect_before_register_facebook' and 'social_connect_login'?

pknazqul commented 10 years ago

Hello Rodrigo,

I can use 'social_connect_before_register_facebook' for save in cookie facebook access token.

Thank you for help.

pknazqul commented 9 years ago

Hello Rodrigo,

Unfortunatelly social_connect_before_register_facebook don't provide me access_token for Facebook. I mean when I try use Facebook SDK for get additional info(for example friends list) I see error. I need next value: $_REQUEST[ 'social_connect_access_token' ] from next code in social-connect.php social_connect_verify_signature( $_REQUEST[ 'social_connect_access_token' ], $sc_provided_signature, $redirect_to );

Give me know if you need more information.

Thanks.