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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:27:26+00:00 2026-05-23T16:27:26+00:00

I just imported all of the newest FBConnect classes into my xCode project and

  • 0

I just imported all of the newest FBConnect classes into my xCode project and it has no error or warnings. I clicked the box add to group folder too. Now I am stuck. I want to actually get to the coding part of this but all of the tutorials I find on the internet are outdated.
All I did so far was #import “FBConnect.h” and thats it. Now what do I do from here just to post a simple status on my wall?
Also how about to upload a photo (UIImage)?

Thanks!

  • 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-23T16:27:26+00:00Added an answer on May 23, 2026 at 4:27 pm

    I don’t have all the answers for you, but here is how my app posts a status update with an attachment (or in facebook speak “publish_stream”). I created a singleton class called FacebookController within which I call:

        facebookObject = [[Facebook alloc] initWithAppId:apiKey];
    

    and then call this method to obtain permission to post:

        [[FacebookController facebookObject] authorize:[NSArray arrayWithObjects:@"publish_stream",nil] delegate:self];
    

    My app obtains information about the user via this method:

            [[FacebookController facebookObject] requestWithGraphPath:@"me" andDelegate:self];
    

    You will also need to use something like these calls to verify the session validity and store needed information:

    [[FacebookController facebookObject] isSessionValid]

    NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
    [prefs setObject:[[FacebookController facebookObject] accessToken] forKey:@"AccessToken"];
    [prefs setObject:[[FacebookController facebookObject] expirationDate] forKey:@"ExpirationDate"];
    [prefs synchronize];
    

    And then you will need this method for the actual posting:

    [[FacebookController facebookObject] requestWithMethodName:@"Stream.publish" andParams:params andHttpMethod:@"POST" andDelegate:self];
    

    params is a NSDictionary that in my case included a message, attachment, action_links, and a target_id.

    I imagine you could include your photo as the attachment, but am not sure exactly what steps you would need to take to do so. In any case, this should get you moving in the right direction.

    The Facebook documentation leaves much to be desired unfortunately.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started working on my first Visual Studio project, and I imported all
I've just imported a Flex component into my project. I have a theory question
Just imported a project I'm taking over into Eclipse. I was compiling fine with
I recently took all my code a manually imported it into an eclipse project
I have a stack of code snippets imported into Visual Studio. Just recently, they
I have a maven web project that imported into eclipse. I have another maven
I've just imported a large amount of source code into Eclipse and basically the
I've just imported an ORACLE database into an instance of Oracle 10 XE running
I have just imported a huge MySQL database. Most fields are latin1_swedish_ci, and they
I have a table about 10 million rows. We just imported it from another

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.