Facebook SDK FBSession无限循环和崩溃 [英] Facebook SDK FBSession infinite loop and crash

查看:252
本文介绍了Facebook SDK FBSession无限循环和崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最初使用FBLoginView在最新的Facebook SDK(3.5)中启动登录过程.但是,由于某种循环,这会使应用程序崩溃.然后,我读到我应该尝试使用以下代码作为测试登录:

I originally used FBLoginView to start the login process in the latest Facebook SDK (3.5). However, that would crash the app because of a loop of some sort. I then read that I should try logging in using the code below as a test:

[FBSession openActiveSessionWithReadPermissions:[NSArray arrayWithObjects:@"read_stream", nil] allowLoginUI:YES
                          completionHandler:^(FBSession *session,
                                              FBSessionState status,
                                              NSError *error) {
                              // session might now be open.
                              NSLog(@"Error - %@", error);
                          }];

我遇到了完全相同的问题.大量进程(具有相同的名称)被调用,应用程序崩溃.有谁知道为什么在使用Facebook SDK时会发生这种情况?这是崩溃的线程的图像:

I got exactly the same issue. A huge number of processes (with the same name) get called and the app crashes. Does anyone know why this would happen when using the Facebook SDK? Here is an image of the thread that crashes:

您可以看到这里有些不正确的地方.任何人有任何想法吗?

As you can see there's something not right here. Anyone got any ideas?

此致,
迈克

Regards,
Mike

推荐答案

我遇到了同样的问题,并尝试将沙箱(在fb应用仪表板中)设置为false,然后就可以了...

I had the same issue, and tried setting sandboxing (in fb app dashboard) to false, and then it worked...

这篇关于Facebook SDK FBSession无限循环和崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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