简体   繁体   English

桌面AIR应用程序和Facebook登录

[英]Desktop AIR app and Facebook login

I try using this lib https://code.google.com/p/facebook-actionscript-api/ , but when I call FacebookDesktop.init("820024968051122",loginHandler); 我尝试使用此库https://code.google.com/p/facebook-actionscript-api/ ,但是当我调用FacebookDesktop.init(“ 820024968051122”,loginHandler)时; I get error: 我得到错误:

code: 2500
message: An active access token must be used to query information about the current user.
type: OAuthException

If I call FacebookDesktop.init("820024968051122",loginHandler,"test_user_token"); 如果我调用FacebookDesktop.init(“ 820024968051122”,loginHandler,“ test_user_token”); then all work fine, but where I get token if user is not log in? 那么一切正常,但是如果用户未登录,我在哪里获得令牌?

伙计,您可以阅读文档 ,在其中可以看到init下有login方法,说明: [static] Opens a new login window so the current user can log in to Facebook.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM