Support » Plugin: Simple Facebook Connect » Call to undefined function fb_login_button()

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Samuel Wood (Otto)


    Try sfc_connect_shortcode instead. Also, activate the sfc connect widget.

    ok – that works, but it doesn’t take the user anywhere. It just reloads the same page without any redirection.
    Also, and as in previous comments from other users the button always says “connect with Facebook. How will the user know that they are connected?

    Plugin Author Samuel Wood (Otto)


    You also have to have the sfc-login plugin enabled. Then it will log them in, as per normal.

    Yes Otto, it is working and the user is logging in. But they don’t know that they are logged in. Because nothing changes on the page, and it appears as though clicking the “connect with Facebook” only reloads the page, how will the users know they are logged in?
    I have users clicking over and over again on that button expecting to be redirected to the home page (as though they are now logged in) or a status to change to let them know that they ARE logged in.

    Can I add something to this to make a successful login always redirect to the home page?

    function sfc_connect_shortcode() {
    	$login ='<fb:login-button perms="email" v="2" size="medium" ';
    	if (function_exists('sfc_login_activation_check')) {
    		$login .= 'onlogin="window.location=\''. wp_login_url() . "?redirect_to='+document.URL;\"";
    	$login .= '><fb:intl>'.__('Connect with Facebook', 'sfc').'</fb:intl></fb:login-button>';
    	return $login;

    I’m sure you get tons of emails everyday so I’ll try to reword my question to make it clear.

    Is there a way to force a redirect (to the homepage) after a successful FB login connection?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Call to undefined function fb_login_button()’ is closed to new replies.