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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:51:58+00:00 2026-05-23T12:51:58+00:00

So I just added Facebook to a previous app that was working. And I

  • 0

So I just added Facebook to a previous app that was working. And I basically just included the code for a button press to upload/post the picture selected to Facebook — nothing happened.

Are there any good resources for learning the syntax for iOS Facebook apps? Because I’m lost. Also, could you tell me why this seemingly simple code doesn’t work? Because I pretty much copied it from the demo app example.

- (IBAction) sendPressed:(UIButton *)sender
{
    for(UIViewController *controller in self.tabBarController.viewControllers)
    {
        if([controller isKindOfClass:[FirstViewController class]])
        {
            FirstViewController *firstViewController = (FirstViewController *)controller;
            [firstViewController realLabel];
        }
    }
    Facebook *facebook = [[Facebook alloc] initWithAppId:@"198223696897308"];

    NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   image, @"picture",
                                   nil];

    [facebook requestWithGraphPath:@"me/photos"
                          andParams:params
                      andHttpMethod:@"POST"
                        andDelegate:self];

    self.tabBarController.selectedIndex = 0;//switch over to the first view to see if it worked
}
  • 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-23T12:51:58+00:00Added an answer on May 23, 2026 at 12:51 pm

    The first thing I’d do is verify that the method is actually being called by setting a breakpoint or outputting a log statement.

    The second thing I’d do is look at the API documentation to see if any of the methods I’m calling provide errors in any way. They almost certainly do, so check what they say.

    The third thing I’d do is set the device to use a proxy (e.g. Charles) to see if the requests are actually being sent out over the wire.

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

Sidebar

Related Questions

I just added a Facebook like button to my website, just the most basic
I just added the latest Facebook SDK code from Github to my project. Because
I have added a facebook button to my company's site so that people can
I’ve just created a facebook app and has added it to my facebook page,
Just downloaded the facebook c# sdk. Haven't written any code just added my references
I have the following site , I just added the facebook like button, but
Having just added a new button in my web application, I get an error
I just added adds to my app, but the moment i run it i
I just added a Facebook Like/Send plugin onto my page. I QA'd the plugin
I noticed that Facebook added a place to explicitly set the height of the

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.