0

我正在使用以下功能打开 FBConnect 登录屏幕,但不幸的是它没有出现在屏幕上,每当我在 Spinner 空白屏幕动画出现后单击登录按钮时。

if(appDelegate.session == nil) {

    appDelegate.session = [FBSession sessionForApplication:API_KEY secret:SECRET_KEY delegate:self];

}
if(loginButton == nil) {
     self.loginButton = [[[FBLoginButton alloc] init] autorelease];
     loginButton.frame = CGRectMake(0, 0, 100, 50);
     [self.view addSubview:loginButton];
}

我已经从开发者帐户中给出了正确的 API_KEY 和 SECRET_KEY 值。请看附图。

在此处输入图像描述

4

1 回答 1

1

Use FBConnect only if it uses Facebook GraphApi, else other api's wont be working.

Why are you using old FB Sdk, use the new iOS SDK 3.0, it very simple to use. Also FB has provided lots of sample app. Get the new sdk here.

And also new Graph Api's doesn't require secret key.

于 2012-09-20T17:30:55.873 回答