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

  • Home
  • SEARCH
  • 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 am using facebook.photos.upload to upload photos direct from my application into facebook albums.
I'm building a facebook connect app to publish content to user's streams. In order
I'm learning how to integrate facebook api in iphone app. First I visited facebook
Exactly what the title says. Is it possible to use Facebook Connect (or any
when i want compile my app with the Distribution or Release method i get
I am using fb-connect for android app problem is when keyboards gets open layout
i have to use fbjs for my current app. i was using the api.requireLogin
Using online interfaces to a version control system is a nice way to have
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using ASP.NET MVC there are situations (such as form submission) that may require a

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.