在重构我的代码时,我发现这个选项可以使用com.facebook.login.widget.DeviceLoginButtonorcom.facebook.login.widget.LoginButton`,看起来也是一样的。
DeviceLoginButton扩展了LoginButton,但是我应该在什么时候使用其中一种呢?有什么区别吗?
即使是从Facebook上看最佳实践,他们也什么也不谈。
提前谢谢。
发布于 2018-04-30 12:58:12
DeviceLoginButton(上下文,AttributeSet,int)
此控件要求在app ID and client token中指定AndroidManifest.xml。
LoginButton(上下文)
此控件要求在app ID中指定AndroidManifest.xml。
FYI
客户端令牌是一个标识符,您可以将它嵌入到本地移动二进制文件或桌面应用程序中,以识别应用程序。
读存取令牌。
https://stackoverflow.com/questions/50101034
复制相似问题