199 Android Facebook Login Tutorial |

slidenerd · 150K views · 2015 · 18:11

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as a step-by-step walkthrough for setting up Facebook SDK v4 login in an Android Studio app.

Recommended by 3 people across 3 different months, 2015 to 2015.

What it is

An 18-minute Android tutorial from the slidenerd channel showing how to add Facebook login using Android Facebook SDK v4.0 and Graph API v2.3. It walks through creating a Facebook app, adding the LoginButton, configuring the manifest and key hash, and using CallbackManager, AccessTokenTracker and ProfileTracker.

What people said

Recommends Anitha · 2015-05 · Stack Overflow · on “Implemention of a Facebook Login Button Sdk 4 android”

This video helped me to create Facebook login button for my app hope it might help anyone else :) ...

Recommends Ayudh · 2015-07 · Stack Overflow · on “FaceBook SDK for android login not working”

so i created a simple facebook login app following the exact instructions from this video: [this video] anyways i am able to sign in but unlike the video, when I sign in, I appear back at the login page, the login button does not change to the logout button, I click the login button, enter my login details, hit send, then a message says: You have already authorized "LoginExample (app name)". Then I appear back at the login with facebook button. and on a similar note, I am trying to get a TextView to display a "Welcome", however it does not work, it only works when I do ' android:text="Welcome" '. Below is my code in a fragment, I do setContentView(activity_fragment); in MainActivity. Again, the L

Recommends PirateApp · 2015-10 · Stack Overflow · on “Get access token; Unknown path components: /access_token, (works in graph API explorer,)”

I would need to see your code. To access any sort of data, you would need to login and get an access token from Facebook since all the information received through the Graph API is based on the user profile and preferences. Have you configured your app by doing the following things? Create an app id on Facebook Generate a hash key Add the hash key to your app here [LINK] Configure the custom Application class to include Facebook SDK initialisation code. Add the meta data to your AndroidManifest.xml containing your app id. Setup the CallbackManager and FacebookCallback with the LoginManager to perform the actual login. All the steps mentioned above are covered in full detail here [this video] Let

Cites user4307744 · 2015-04 · Stack Overflow · on “Confused about the keyhash that in facebook android sdk”

I m working with facebook sdk for android, and I ve red almost every documentation I ve found about it, but what confuses me, is the keyHash, I ve heard that its made for security, and in this slidenerd tutorial [this video] Mr Vivek says that its supposed to be secret, but he didn't remove the code which generated it, and anybody who can have that same code could generate the same hash since there its not a salted hash. I m a bit confused about it, so please tell me what I m missing. thanks in advance.

Cites kittu88 · 2015-07 · Stack Overflow · on “Android Studio application running issue”

I have an android application which was originally built on Eclipse IDE along with ADT. When the new FB SDK 4+ came out, the app was upgraded to use the new FB SDK in Eclipse only. It was running fine. Now, I wanted to import the application in Android Studio. I had imported it successfully and it executed as expected using the new FB Library as a module. Now, I wanted to change the FB library referencing in the way gradle does in Android Studio. I have followed this video [this video] and this article [LINK] for achieving the goal. After following the steps, I have removed the FB modules from my project. The project shows no other error, but whenever I try to run it, I get an error like: Error:E

Cites eldivino87 · 2015-11 · Stack Overflow · on “Login with facebook into android app”

STEP ONE Did you registered your app? If you didn't, go to [LINK] , click Add a New App in the top right and follow the instructions. STEP TWO The 2nd step is add Facebook SDK to your Project . You can do that follow the [LINK] In Android Studio, create a new project with API 15 as minimum SDK The Facebook SDK is available on Maven Central, so edit your build.gradle and add repositories { mavenCentral() } before dependencies Then, add compile 'com.facebook.android:facebook-android-sdk:4.7.0 in dependencies Build your project and initialize the Facebook SDK into your app The code is the following: import com.facebook.FacebookSdk; @Override public void onCreate(Bundle savedInstanceState) { sup