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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:30:57+00:00 2026-06-12T03:30:57+00:00

I was able to post a status update to Facebook user wall through the

  • 0

I was able to post a status update to Facebook user wall through the iOS app I’m developing a few days ago. Then I probably accidentally removed something, I now cannot post and get error message. The relevant code is A:

    message = @"test";
    [FBRequestConnection startForPostStatusUpdate:message
    completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
    }

I also tried following method B:

    [FBRequestConnection startWithGraphPath:@"me/feed" parameters:postParams HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection,id result,NSError *error)

and I got same error message: The operation couldn’t be completed. (com.facebook.sdk error 5.)”

I also noticed doesn’t matter if I use FacebookSDK.h or Facebook.h for either method, both (four ways) would all get the same error message above. I also wonder why FacebookSDK.h is enough to support two methods above, why the tutorial suggests deprecated Facebook.h.

Interesting, I went to check another testing iOS app that I remember could post Facebook status update, and found it could not post either. Any idea?

  • 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-12T03:30:58+00:00Added an answer on June 12, 2026 at 3:30 am

    I decided to use iOS6 feature SLComposeViewController, which makes posting Facebook status update a piece of cake.

    After add Social framework in your .m file, you can do sth like this:

        - (IBAction)clickMe:(UIButton *)sender {
             NSLog(@"you clicked me");
             if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {
    
           SLComposeViewController* myFB = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
    
    
              SLComposeViewControllerCompletionHandler myBlock = ^(SLComposeViewControllerResult result) {
                if (result == SLComposeViewControllerResultCancelled) {
                    NSLog(@"cancelled");
               } else {
                   NSLog(@"oh yeah");
               }
            [myFB dismissViewControllerAnimated:YES completion:nil];
        };
        myFB.completionHandler = myBlock;
        [myFB setInitialText:@"Posting from my app."];
        [self presentViewController:myFB animated:YES completion:nil];
    
        }
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need to post status update and attach user location by passing latitude and longitude.
I'm able to update the status on my PROFILE wall using this code: require_once
I want my app to be able to post status updates to a specific
I want to update my Facebook status through my Java console application. I am
I am Using LinkedIn-j API for LinkedIn Integration. I am able to post Status
I can able to post the tweet through my application using C# with twitterizer
I would like my iPhone app to be able to post a static message
I'm using Spring/Roo for an app server, and need to be able to post
I would like to be able to like a Facebook status using the Graph
A few months ago I used to be able to pre-fill the dialog box

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.