-1

I have downloaded the latest version of the Facebook SDK. Im currently following this guide on how to implement facebook login to my app:

https://developers.facebook.com/docs/facebook-login/android

But this guide seems to be out of date, because they have removed Session. Instead, they have Introduced AccessToken, LoginManager and CallbackManager classes.

I can't find any guides where they show how to implement facebook login with the new SDK.

Is It OK to use an older version that uses the Session class Instead?

Bryan
  • 3,421
  • 8
  • 37
  • 77

2 Answers2

0

You should definitely use the latest SDK. And the docs you referenced to should have updated tutorials: https://developers.facebook.com/docs/facebook-login/android/v2.4

Moreover, our SDK is bundled with various sample projects that help you understand the Login process among other features, e.g.: HelloFacebookSample

ifaour
  • 38,035
  • 12
  • 72
  • 79
0

you can add this to your Gradle file in android studio too add Facebook SDK to your project.

compile 'com.facebook.android:facebook-android-sdk:4.5.0'

Latest Facebook SDK == 4.5.0 at this time

Milad Nouri
  • 1,587
  • 1
  • 21
  • 32