Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 602865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:52:08+00:00 2026-05-13T16:52:08+00:00

I am using FBConnect in my app. The log in action sheet buttons are

  • 0

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]; 
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:52:08+00:00Added an answer on May 13, 2026 at 4:52 pm

    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 of FBLoginButton , when delet this method my UIActionSheet doesn’t Show

    ! here is my code :

    -(IBAction)mySheet:(id)sender
    {
        if (session.isConnected) {
            UIActionSheet *menu = [[UIActionSheet alloc] initWithTitle:@"FaceBook"
                                                              delegate:self  cancelButtonTitle:@"Cancel"
                                                destructiveButtonTitle:nil
                                                     otherButtonTitles: @"Share On the Facebook" , @"Log out Facebook" ,nil]; 
            [menu showInView:self.view]; 
            [menu release]; 
    
    
        } else {
    
    
    
            UIActionSheet *menu2 = [[UIActionSheet alloc] initWithTitle:@"FaceBook"
                                                               delegate:self  cancelButtonTitle:@"Cancel"
                                                 destructiveButtonTitle:nil
                                                      otherButtonTitles:  @"Log in Facebook" ,
                                    nil]; 
    
            [menu2 showInView:self.view]; 
            [menu2 release]; 
        }
    }
    
    
    - (void)actionSheet:(UIActionSheet *)menu2 didDismissWithButtonIndex:(NSInteger)buttonIndex {
    
    if (buttonIndex != [menu2 cancelButtonIndex]) 
        {
    
            FBLoginDialog* login = [[FBLoginDialog alloc] initWithSession:session];
            [login show];
            [login release];
        }
    
    }
    
    - (void)actionSheet:(UIActionSheet *)menu didDismissWithButtonIndex2:(NSInteger)buttonIndex {
    
    
    
        if (buttonIndex != [menu cancelButtonIndex]) 
        {
            [session logout];
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the Facebook authentication in my iphone app. But the problem
i am using FBConnect in my project for integration of Facebook.but now i saw
I generate a login url using: $facebook->getLoginUrl(array('canvas' => 1, 'fbconnect' => 0, display=>page, 'next'
I am building an Facebook IFrame App. I am using the below javascript code
I'm using Batch requests in iOS FB connect app, and I want for example
I'm building a facebook connect app to publish content to user's streams. In order
I'm writing a Rails 3.1 app, using Clearance for auth. I want to add
I have integrated the facebook in my app using http://sourceforge.net/projects/facebook-bb-sdk , it work fine
hi I am using FBConnect to post on users wall.... But is there a
I have a facebook app which I'd like to test using Watir. The problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.