I am using FBConnect in my app. The log in action sheet buttons are title “Log in Facebook” and “LogOut Facebook” but I want to display “Log into Facebook” and “Publish to Facebook”. Currently, it looks like this…
alt text http://freezpic.com/pics/6944f45f17ba4bbb8220637d5a00a1c6.jpg
…but I want it to look like this…
alt text http://www.freezpic.com/pics/93f28f4f9103f0842c849d7daa644f81.jpg
… possibly set in these methods:
- (void)session:(FBSession*)session didLogin:(FBUID)uid {
//Show button log out
}
- (void)sessionDidLogout:(FBSession*)session {
//show button log in
}
Edit01- Alert sheet code from answer comment:
-(IBAction)mySheet:(id)sender {
UIActionSheet *menu = [[UIActionSheet alloc] initWithTitle:@"FaceBook"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Share On the Facebook" ,
@"Log in Facebook" ,
@"LogOut Facebook" ,nil];
[menu showInView:self.view];
[menu release];
}
Finally i implement that !
(alreadyLoggedInToFacebook)must be(season.isConnect). every thing is good ! but still a problem . after login – logout and share show great but didn’t work great ! it means if user tap Logout button , login window appears again ! why ? i think , its because ofFBLoginButton, when delet this method my UIActionSheet doesn’t Show! here is my code :