简体   繁体   English

FbRequest方法后iPhone应用程序崩溃

[英]iphone App crashing After FbRequest method

I have made an iPhone App which has a "loginwithFacebook" button , the login procedure is working fine . 我制作了一个带“ loginwithFacebook”按钮的iPhone应用程序,登录过程正常。 but App crashes after passing through the FBRequest method " - (void)request:(FBRequest *)request didLoad:(id)result " and " - (void)connectionDidFinishLoading:(NSURLConnection *)connection " . 但在通过FBRequest方法“ - (void)request:(FBRequest *)request didLoad:(id)result- (void)connectionDidFinishLoading:(NSURLConnection *)connection之后,应用程序崩溃。

I tried to put some break point in these methods. 我试图在这些方法中设置一些断点。 Then , I was amaized to see that App is working After some delay with that i made putting the break points. 然后,我很惊奇地看到App正在运行,经过一段时间的延迟后,我提出了断点。

Is it something related to loading the connection or Delay of the content loading from Fbrequest method ??? 它与从Fbrequest方法加载连接或延迟内容加载有关吗?

please help me .. 请帮我 ..

It may be related to the access token of Facebook. 它可能与Facebook的访问令牌有关。 because when u log in with Facebook, you will get one access token, and that token is used everywhere, so try to check the access token as its not nil. 因为当您使用Facebook登录时,您将获得一个访问令牌,并且该令牌已在所有地方使用,因此请尝试检查访问令牌是否为nil。 and this is just my assumption but will request you to keep your code where the crash happened. 这只是我的假设,但会要求您将代码保留在发生崩溃的位置。 else post the crash reason from console. 否则从控制台发布崩溃原因。

[NSNull lowercaseString] which means your one string is null and you are trying to apply lowercaseString method to that string. [NSNull lowercaseString]表示您的一个字符串为空,并且您正在尝试将lowercaseString方法应用于该字符串。 keep a null check condition before this method call or you can check why this string is null. 在此方法调用之前保留一个空检查条件,否则您可以检查为什么此字符串为空。

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

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