Guest MrLeN Posted April 12, 2018 Share Posted April 12, 2018 My WordPress theme has the ability for people to login with facebook (by clicking a button)..I contacted the people who made my WordPress theme and asked them for some code that tells me if someone is logged in via the Facebook login button or via WordPress.they gave me a link to this code:https://gist.github.com/seventhqueen/70a8131d9643988200dafe3959f6fde8I don't understand it.I need that code to echo:"The user is logged in with facebook"or"The user is not logged in with facebook"I'll give $10 to anyone who can show me to to get the code to echo that. Link to comment https://forums.phpfreaks.com/topic/307111-10-show-me-how-to-use-this-code/
Guest MrLeN Posted April 12, 2018 Share Posted April 12, 2018 Oh the theme developer gave me the code.Add this to the end if ( sq_is_facebook_user() ) { echo 'Is Facebook user'; } else { echo 'Is WordPress user'; } Link to comment https://forums.phpfreaks.com/topic/307111-10-show-me-how-to-use-this-code/#findComment-1557799
Recommended Posts