diff --git a/facebook-login/src/main/java/com/facebook/login/widget/LoginButton.java b/facebook-login/src/main/java/com/facebook/login/widget/LoginButton.java index c638b5f2a6..69d6998158 100644 --- a/facebook-login/src/main/java/com/facebook/login/widget/LoginButton.java +++ b/facebook-login/src/main/java/com/facebook/login/widget/LoginButton.java @@ -241,6 +241,16 @@ public LoginButton(Context context, AttributeSet attrs, int defStyle) { AnalyticsEvents.EVENT_LOGIN_BUTTON_DID_TAP); } + public void setLoginText(String loginText) { + this.loginText = loginText; + setButtonText(); + } + + public void setLogoutText(String logoutText) { + this.logoutText = logoutText; + setButtonText(); + } + /** * Sets the default audience to use when the user logs in. * This value is only useful when specifying publish permissions for the native