我需要在墙上发布一张图片.照片是在我的iPad应用程序中生成的.
我在纵向模式下有十多个ViewControllers,但无论设备的方向如何,我都需要在横向模式下强制使用一个.
我从facebook教程得到了这段代码:
- (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI {
NSArray *permissions = [[NSArray alloc] initWithObjects:
@"email",
@"user_likes",
nil];
return [FBSession openActiveSessionWithReadPermissions:permissions
allowLoginUI:allowLoginUI
completionHandler:^(FBSession *session,
FBSessionState state,
NSError *error) {
[self sessionStateChanged:session
state:state
error:error];
}];
Run Code Online (Sandbox Code Playgroud)
}
但它始终打开Safari选项卡. 我需要强制进行webview登录而不是Safari Tab.
谢谢你的推荐!