如何使用弹出式视图登录Facebook,而不是通过Safari浏览器,使用Facebook SDK 3.1? [英] How to login facebook with pop up view, not through safari, using Facebook SDK 3.1?

查看:283
本文介绍了如何使用弹出式视图登录Facebook,而不是通过Safari浏览器,使用Facebook SDK 3.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我解决这个问题!我想要创建应用程序登录Facebook,如果设备安装了Facebook应用程序,我的应用程序将在用户登录Facebook时调用Facebook应用程序,如果没有安装Facebook应用程序,我的应用程序将显示弹出式登录视图,而不需要sarafi?

解决方案

如果您使用共享工具包,请转到SDK中的facebook.m类找到此方法:



$ {code> - (void)authorize(NSArray *)权限
委托:(id< FBSessionDelegate>)委托

然后替换最后一行: [self authorizeWithFBAppAuth:YES safariAuth:YES];



使用这一行: [self authorizeWithFBAppAuth:YES safariAuth:NO; &检查。


Please help me this question! I want to create app login facebook, if device installed Facebook app, my app will call Facebook app when user login Facebook, if Facebook app is not installed, my app will show pop up login view, without sarafi?

解决方案

If You use share kit then Go to facebook.m class in your SDK find this method:

- (void)authorize:(NSArray *)permissions
         delegate:(id<FBSessionDelegate>)delegate

Then replace your last line which is:[self authorizeWithFBAppAuth:YES safariAuth:YES];

With this line:[self authorizeWithFBAppAuth:YES safariAuth:NO; & check.

这篇关于如何使用弹出式视图登录Facebook,而不是通过Safari浏览器,使用Facebook SDK 3.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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