简体   繁体   English

iPhone Facebook应用程序登录问题

[英]iPhone Facebook Application Login Problem

I am trying to implement Facebook functionality on iPhone using Facebook API. 我正在尝试使用Facebook API在iPhone上实现Facebook功能。 In my application I can open the Login screen, but when I enter Email and password and press "Connect" button there nothing is to be happen. 在我的应用程序中,我可以打开“登录”屏幕,但是当我输入电子邮件和密码并按“连接”按钮时,没有任何反应。 And after sometimes I will be back in my previous screen. 有时之后,我将返回到先前的屏幕。 I have used FBConnect bundle. 我已经使用了FBConnect捆绑包。 I can't understand why I cannot login in Facebook? 我不明白为什么我不能登录Facebook? Even I get that login screen but that connect button cannot do anything. 即使我得到了登录屏幕,但该连接按钮也无能为力。 Please help me... 请帮我...

You need to post your code, so we can see how you have attempted this. 您需要发布代码,这样我们才能看到您是如何尝试的。

From what you have explained though, it seems like you're not implementing the delegate call back for the login dialogue. 从您的解释来看,您似乎没有实现登录对话框的委托回调。 You need to implement 您需要实施

- (void)session:(FBSession *)session didLogin:(FBUID)uid;

and possibly these two methods as well. 可能还有这两种方法。

- (void)dialogDidSucceed:(FBDialog *)dialog;
- (void)dialogDidCancel:(FBDialog *)dialog;

They are the call backs your session delegate object will receive when certain actions have been completed. 它们是完成某些操作后您的会话委托对象将收到的回调。

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

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