android facebook integration android studio example

android facebook integration android studio example

android facebook integration android studio example

Android facebook integration android studio example contains step by step guide to integrate facebook into Android studio project. Just follow steps and integrate facebook login and sharing in 10 minutes. You need following with you to start with Facebook integration in your Android Apps.

Step 1 : Goto https://developers.facebook.com and create a new app. Here most important is package name and key hash (You need to create key hash and update it)

Make sure to add contact email address (It’s compulsory else your app will not work)

Then Goto App Review and Make your App Online (This is must to use app in android)

Step 2 : Download Facebook SDK and copy only facebook folder into your project folder (where your app folder is there)

Now add that facebook into settings.gradle where include: app is already there… you need to add another line which is your facebook sdk

include ‘:app’
include ‘:facebook’

Step 3 : Setup minimum SDK to 15 or above

Step 4 : Following into your Android manifest.xml

Make sure to replace XXXXXXXXXXXXX with your facebook app id

 

Step 5 : Add following into your string.xml

Make sure to replace XXXXXXXXXXXXX with your facebook app id

 

Step 6 : Code to add Code for Login Button

 

Step 7 : XML Code

 

 

 

Save

Save

Save

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative