customize Android Facebook Login button

In order to have completely custom facebook login button without using com.facebook.widget.LoginButton. According to facebook sdk 4.x, There new concept of login as from facebook LoginManager and AccessToken – These new classes perform Facebook Login So, Now you can access Facebook authentication without Facebook login button as layout.xml <Button android:id=”@+id/btn_fb_login” …/> MainActivity.java @Override public void … Read more

How can I access a BuildConfig value in my AndroidManifest.xml file?

Replace buildConfigField “long”, “FACEBOOK_APP_ID”, FACEBOOK_APP_ID with resValue “string”, “FACEBOOK_APP_ID”, FACEBOOK_APP_ID then rebuild your project (Android Studio -> Build -> Rebuild Project). The two commands both produce generated values – consisting of Java constants in the first case, and Android resources in the second – during project builds, but the second method will generate a string … Read more