开发者

facebook login button logout text

开发者 https://www.devze.com 2023-02-18 07:10 出处:网络
so i have this facebook login button: <fb:login-button autologoutlink=\"true\" onlogin=\"Log.info(\'onlogin callback\')\">

so i have this facebook login button:

<fb:login-button autologoutlink="true"
                 onlogin="Log.info('onlogin callback')">
</fb:login-button&g开发者_JAVA百科t;

but then once you log in, the log out button text gets really long

how can I change the text displayed on the logout button so that it's shorter?


Hi In my application I check if the user is is logged in or not and give the button text text accordingly.

if( $this->loggedIn ){
    $button = '<div id="fb-root"></div><fb:login-button perms="email,user_birthday" onlogin="window.location.reload(true);" autologoutlink="true">Logout</fb:login-button>';
    }
    else {
        $button = '<div id="fb-root"></div><fb:login-button perms="email,user_birthday" autologoutlink="true"></fb:login-button>';
    }

Hope this will work for you too

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号