Unity Facebook SDK登录始终返回用户0访问令牌abc ... z [英] Unity Facebook SDK Login Always Returns User 0 Access Token abc...z

查看:243
本文介绍了Unity Facebook SDK登录始终返回用户0访问令牌abc ... z的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Unity Facebook SDK 4.3.4测试Unity 4.3,并且所有程序都在运行,但是它似乎总是返回测试用户,而不是我的实际Facebook登录名.

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.

使用Facebook InteractiveConsole场景,登录后,我看到:

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

Facebook Dll:已成功加载
用户名:0
IsLoggedIn:True
AccessToken:abcdefghijklmnopqrstuvwxyz

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

正在运行FriendSmash ...同样的事情只会返回用户ID:0和无名称

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

我如何告诉SDK实际登录我而不仅仅是测试用户?

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.

有帮助吗?

推荐答案

您实际上还无法登录并在编辑器中获取真实数据.我们只返回一些占位符数据,这就是您所看到的.这是我们目前正在使用的功能.但是目前,您将需要在iOS模拟器,iOS设备,Android设备上运行,或者将您的游戏放在Facebook画布上才能正常工作.

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.

这篇关于Unity Facebook SDK登录始终返回用户0访问令牌abc ... z的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆