简体   繁体   中英

How can i login without permission dialog on facebook with ios sdk?

in my application on iphone when i call

[facebook authorize:permissions delegate:self];

the framework show login dialog automatically if i'm not loggedin, and then show permission dialog (This is great for the frist time that a user use the application). But if i've aleady get permission i always show the dialog with message "You have aleady authorized this application".

So, how can i login without show permission dialog? Or can i check if i've aleady get permission to the application?
In the framework sample code the only way to login is by authorize method...

Thanks in advance.

您可以在设备上本地存储访问令牌(确保请求offline_access权限),然后在下一次用户使用您的App时检查该令牌是否仍处于活动状态(调用/ me / permissions或类似的东西)-如果是仍处于活动状态,您无需返回Facebook重新进行身份验证-如果不是,则您当前使用的登录代码仍然可以。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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