fbconnect ios iphone登录页面上的错误 [英] fbconnect ios iphone error on login page
本文介绍了fbconnect ios iphone登录页面上的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Iphone应用程序中使用iOS的fbconnect
I am using fbconnect for iOS in Iphone application
当我使用代码打开登录时:
When I am open the login using code:
[facebookObj authorize:fbPermissions delegate:self];
但在UIWebView中我得到错误消息
发生错误。请稍后再试
but in the UIWebView I got the error message "An Error Occurred. Please try again later"
我缺少什么。请帮助
Amit Battan
推荐答案
AtFirst东西,有u做这些事情,分配FBclass与ur APPId,在DidLoad然后
AtFirst thing, have u do these thing, allocate FBclass with ur APPId, in DidLoad then
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
fbPermissions = [[NSArray arrayWithObjects:
@"read_stream", @"offline_access",nil] retain];
}
return self;
}
Atlast登录IBACTION
Atlast for login IBACTION
[_facebook authorize:fbPermissions delegate:self];
不要忘记ur AppID
Dont Forget ur AppID
这篇关于fbconnect ios iphone登录页面上的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文