Facebook


 

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open res -> layout -> Create new xml, home_fragment.xml and add following code :

Step 5 : Open src -> package -> Create new class, YouTubeFragment.java and add following code :

Step 6 : Open res -> layout -> Create new xml, frag_login_button.xml and add following code :

Step 7 : Open src -> package -> Create new class, LoginButtonFragment.java and add following code :

Step 8 : Open res -> layout -> Create new xml, frag_login_button.xml and add following code :

Step 9: Open src -> package -> Create new class, LoginManagerFragment.java and add following code :

Step 10 : Open res -> layout -> Create new xml, frag_like_share.xml and add following code :

Step 11 : Open src -> package -> Create new class, LikeNShareFragment.java and add following code :

Step 12 : Open AndroidManifest.xml and add following code :

Step 13 : Open build.gradle(Module: app) and add following code :

 

ScreenShot:

fb_home fb_loginbutton fb_loginmanager fb_like_share fb_share fb_like

Download SourceCode