Hi just want to know the steps in adding the facebook SDK for Android Studio. Well I already tried doing it in eclipse but this time I'm really lost on what to do since the steps given in facebook developers page is still on eclipse (https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/)
I read some questions about this problem and I think it has something to do with the gradle stucture wherein I'm not familiar with. Which is why I'm asking for the steps on how to do this. Well basically what I just need is to incorporate a facebook login in my app and just get the ID and username. make the login persist until signed out and that's all. Thanks in advance.
Here's how I managed to make Facebook SDK 3.6 work with Android Studio 0.4.2 after 2 days of battle, since this great article in Facebook Devs is based on Android Studio 0.3.0 and some important parts are not applicable in the new version.
include ':facebook', ':helloworldapp'
dependencies { compile project(':facebook') compile 'com.android.support:appcompat-v7:+' }
import com.facebook.*
, you can now add <com.facebook.widget.LoginButton />
to your layout.