Reputation: 1461
I found many explanations on using Facebook SDK, all of which were using an instance of 'Facebook' class like ->
Facebook facebookClient = new Facebook();
but in the new SDK which I had pulled using Gradle:
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
I just couldn't find this Facebook
class. Is there a new update ? Could anyone explain precisely how to go about this in the new SDK ?
Upvotes: 0
Views: 290
Reputation: 30611
You are using an extremely old version of the Facebook SDK. The current one uses Session
, Request
and Response
objects to handle third-party API access.
References:
1. How to implement Facebook login in Android applications?.
EDIT:
Hit the Sync Project with Gradle Files
button. Also try re-starting your IDE. It shouldn't be a problem to import this SDK.
Upvotes: 2