I am currently using the Facebook Android SDK with IntelliJ.
What you need to do is add the SDK as a library for your project.
- First, build Facebook Android SDK using Gradle
- Open project settings, under Libraries, select Java
- Navigate to the Facebook Android SDK directory, select the facebook sub-directory and click OK
- The next screen will show a check-list of items, mostly directories - each of them will be classified as source, class etc.
- Uncheck everything, and then check the following items:
- facebook-android-sdk/facebook/build/classes/release
- facebook-android-sdk/facebook/gen
- facebook-android-sdk/facebook/src
- Then, click Next/OK/Finish
This might be sufficient, but in my case I had to go the Module settings, Dependencies tab and move the facebook item above the project sources item to get the module to compile.