Search code examples
facebookunity-game-enginefacebook-unity-sdk

Unity Facebook SDK Login Always Returns User 0 Access Token abc...z


I am testing Unity 4.3 with Unity Facebook SDK 4.3.4 and have everything running but it seems to always return a Test User and not my actual Facebook Login.

Using the Facebook InteractiveConsole Scene, after Logging in I see:

Facebook Dll: Loaded Successfully
UserId: 0
IsLoggedIn: True
AccessToken: abcdefghijklmnopqrstuvwxyz

Running FriendSmash...Same thing just returns the UserID: 0 and No Name

How do I tell the SDK to actually log ME in and not just a test user?

I can't seem to find anything, I tried setting the App to Not in Sandbox mode

I think I am probably missing something obvious.

Any help?


Solution

  • You can't actually log in and get real data in the editor yet. We just return some placeholder data, this is what you are seeing. This is a feature we are currently working on. But for now you will need to run on the iOS simulator, an iOS device, an Android device, or put your game onto Facebook canvas to get a working login.