如何通过新的Facebook Connect iOS API授权用户通过对话框? [英] How to authorize user through a DIALOG with the NEW Facebook Connect iOS API?

查看:115
本文介绍了如何通过新的Facebook Connect iOS API授权用户通过对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解 - http://developers.facebook.com/docs/guides/ mobile /#ios - 似乎非常有用,但是我的应用程序不支持多任务,所以这个cross safari方法对我来说是不行的。

I understand - http://developers.facebook.com/docs/guides/mobile/#ios -, seems really useful, but my app won't support multitasking, so this "cross safari" method won't work for me.

有没有一个简短的例子(或者有人可以复制这里)一个通过FBDialogs 的认证过程(使用这个所谓的新API)?我只是知道这个SDK,所以请尽可能的基本的。

Is there a brief example somewhere (or can someone please copy here) an authentication process trough FBDialogs (with this so called "new" API)? I'm just getting know this SDK, so please as basic as you can.

推荐答案

的小时...

这里是绕过fb应用程序| background-safari身份验证的解决方案,只是在Facebook.m中更改:

Here is the solution to bypass fb app|background-safari authentication, and it is just to change in Facebook.m:

[self authorizeWithFBAppAuth:YES safariAuth:YES]

to

[self authorizeWithFBAppAuth:NO safariAuth:NO]



in the method:

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

验证它与示例代码,而不改变任何其他(当然设置kAppId到你的)

Verified it with the sample code without changing anything else (of course set kAppId to yours)

我很生气,为什么地球上的FB不记录这个...

I was quite mad why on earth FB doesn't document this...

希望它有帮助,

干杯

这篇关于如何通过新的Facebook Connect iOS API授权用户通过对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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