I already tried several answers I could find but none of them worked with the latest Facebook Android SDK version 4.0.
How can I change the layout height with the latest SDK?
The Login button is a simple way to trigger the Facebook Login process on your website or web app. If someone hasn't logged into your app yet, they'll see this button, and clicking it will open a Login dialog, starting the login flow.
When inserted properly, a login button appears on the Web page. Clicking the login button opens a login window in which a user enters the username and password.
Just set paddingTop and paddingBottom. It works for me.
<com.facebook.login.widget.LoginButton android:id="@+id/login_facebook_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="15dp" android:paddingBottom="15dp" android:layout_marginRight="30dp" android:layout_marginLeft="30dp"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With