Page 1 of 2
Social Logins & Facebook Login
Posted: Mon Mar 06, 2017 12:46 pm
by misric
Hello !
I have some issue with Facebook login and WordPress phpBB integration while login on WP.
When I'm idenfidied on phpBB with phpBB login form, I'm able to login to wordpress via Facebook Login.
If I logout from PhpBB, There is no way to login from Facebook Login, sometimes withe timeout from wp-admin/wp-ajax.php
It seems having some JQuery version mismatch.
Any Idea ?
WP version : 4.7.2
WP theme : Natural lite
Facebook login version : 1.1.6
w3all phpBB Wordpress version : 1.6.4
Re: Login & Facebook Login
Posted: Mon Mar 06, 2017 3:56 pm
by axew3
facebook login plugin which is this you're using?
Re: Login & Facebook Login
Posted: Mon Mar 06, 2017 8:59 pm
by misric
Socials Logins & Facebook Login
Posted: Mon Mar 06, 2017 10:31 pm
by axew3
ok we should resolve with this, many things at once.
Open wp_w3all.php file
search for lines:
Code: Select all
// stuff about profile changes WP to phpBB
add_action( 'profile_update', 'wp_w3all_up_phpbb_prof', 10, 2 );
add_action( 'user_register', 'wp_w3all_phpbb_registration_save', 10, 1 );
add_action( 'delete_user', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_delete_user' ) ); // todo // just deactivated on phpBB, when deleted in WP
immediately after,
and before the char }
add the follow:
Code: Select all
add_action( 'set_logged_in_cookie', 'w3all_user_session_set', 10, 5 );
function w3all_user_session_set( $logged_in_cookie, $expire, $expiration, $user_id, $scheme ) {
$user = get_user_by( 'ID', $user_id );
$phpBB_user_session_set = WP_w3all_phpbb::phpBB_user_session_set_res($user);
return;
}
This should resolve really many things at once: it will be added on 1.6.5.
Re: Social Logins & Facebook Login
Posted: Tue Mar 07, 2017 6:45 am
by misric
Yeah, works fine ! You're a god !
Thanks for all your works !
Re: Social Logins & Facebook Login
Posted: Tue Mar 07, 2017 3:17 pm
by axew3
all We hope to be some God ... We just learn from what others before us have maybe discover. We can apply smarty solutions. There are really few "Gods" on this world. I'm unfortunately not one of these! And taken alone, in true i think, nobody can be a God. All together, maybe We can be a God!
Perhaps this is the true, behind everything!