- Home /
Facebook SDK 3.1.2 for Unity - Trouble logging in on Android Devices
I'm using the latest version of the Facebook SDK, version 3.1.2, for Unity. My problem is that when I click my login button, it'll bring up the dialogue screen to give the app permission to access the basic stuff, public profile and friend list. Upon hitting the ok button, it'll return me to my app but fail the login. I found the AndroidFacebook class and noticed that OnLoginComplete function has a string message param where it should grab the user's id and access token from. So I put a debug message in there to see what was being returned. It turns out that although I press ok to give the app access to facebook, it's saying that the process was cancelled. {"cancelled":true} is the Json string being returned. I've doubled check my app settings in the facebook developer page and the Package name, class name and debug hash key all match what I have in the Unity Facebook settings. I've even tried with the Sandbox mode on and off.
This only happens on my android builds. The iOS builds work perfectly
Answer by abrady · Sep 25, 2013 at 06:49 AM
Hi ASkyMesa,
Try grabbing the 4.2.4 SDK here: http://beta-fb-unity-sdks.parseapp.com/v4.2.4/FacebookSDK.unitypackage
Let me know if that solves your problem.
Your answer
Follow this Question
Related Questions
Unity Facebook apprequest notifcation opens browser instead of play store 0 Answers
Using Facebook API with android, says login is cancelled by Player. 6 Answers
What Facebook account to use for creating app ID 1 Answer
"Facebook object not loaded yet" error 3 Answers
How to share the post to internet from game in unity3d? 0 Answers