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 8388867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:33:59+00:00 2026-06-09T18:33:59+00:00

I am creating an iOS application and I am adding some sharing options. I

  • 0

I am creating an iOS application and I am adding some sharing options. I already downloaded the Facebook 3.0 SDK and placed it in my project in accordance with the Facebook developer page. All I need my application to do is post text-only status updates to Facebook when a certain button is clicked on an UIActionSheet. Here is the code I have so far:

#import <FacebookSDK/FacebookSDK.h>

-(void) actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
    if (buttonIndex == 0) {
        NSArray *permissions = [NSArray arrayWithObject:@"publish_actions"];
        [FBSession openActiveSessionWithPermissions:permissions allowLoginUI:YES
                              completionHandler:^(FBSession *session,
                                                  FBSessionState status,
                                                  NSError *error) {
                                  // session might now be open.
                                  if (session.isOpen)
                                      //don't know what to do from here
                              }];
    }
}

I don’t know where to proceed from here. The authentication takes place and then the Facebook app on my iPhone opens and that is the end of it. Also, if there is anything else I should add that I am missing PLEASE let me know. I am new to Facebook SDK.

  • 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-06-09T18:34:01+00:00Added an answer on June 9, 2026 at 6:34 pm

    Facebook’s iOS documentation covers this very nicely in their sample application and tutorials.

    Specifically

    HelloFacebookSample: combines use of FBLoginView,
    FBProfilePictureView, FBFriendsPickerViewController,
    FBPlacePickerViewController, and FBRequest for profile access, status
    updates and photo uploading.

    • From developer.facebook.com
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an application for iOS 5 and I'm drawing some gradients. The following
I'm creating an application for iOS and I'm stuck on a math issue. I
I'm creating an iOS project for school and it works with chemical reactions. The
I am creating an app using iOS 5 SDK. I managed to push views
In the documentation from facebook to integrate their sdk in iOS app, they mentioned
I'm creating a ios application without nib files and want to initialize the window
I'm creating a reusable framework for displaying notifications in an iOS application. I'd like
So, I was creating an application for iOS with Xcode 4.2.1, I don't know
I am creating an iOS application that is suppose to get the list of
I am creating an iPhone iOS Application. I have 3 tabs in a tab

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.