- Home /
Facebook sdk 11.0.0 not working on android device
Hey I'm using Unity 2019.4.17 and Facebook sdk 11.0.0 and I'm trying to make a simple login system to my mobile game. I did everything's according to this guide: https://www.youtube.com/watch?v=wrtkxIr8u5s&t=521s and it seems that everything's working fine on the editor, I'm gating message on the console that I'm logged in.
The problem is when I'm trying to test my game on my android phone and the game run perfectly but nothings happen when I'm trying to login to Facebook its seems that Facebook didn't even initialize
I really tried everything
Answer by unicusgaming · Aug 04, 2021 at 08:44 AM
Hi, Did you figure out a way? I am also facing the same issue.
Answer by oriman123 · Aug 18, 2021 at 10:22 AM
unfortunately no I'm waiting for an update maybe it will fix it
Answer by Vlady73 · Feb 15 at 11:26 PM
I found a solution here: https://community.playfab.com/questions/41283/cant-login-to-facebook-on-android-build.html
this is what I did and It worked for me:
You will need to edit the proguard-user.txt
go to project settings under publishing settings if your using Gradle build you will have the
option to enable - "Custom Progurad file"
after enabling go to the file location open it and write there:
-keep class com.facebook.** { *; } -keepattributes Signature
save it and run another build issue will be solved
Your answer
Follow this Question
Related Questions
Facebook SDK v7.2 login not working when on android 2 Answers
Android Build Crashes on Start: Didn't find class "com.facebook.FacebookContentProvider" 1 Answer
Conflict with activity tags on android manifest: Facebook and Google Play Games in Unity3d 1 Answer
Facebook unity sdk 5.0.3 and soomla 1 Answer