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

The Archive Base Latest Questions

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

I am running into issues trying upgrade my Facebook SDK to the latest production

  • 0

I am running into issues trying upgrade my Facebook SDK to the latest production release (FacebookSDK-3.0.8.pkg – Facebook SDK 3.0 for iOS (update 1) [August 21, 2012]).

I am following along with tutorial on this page.

I have ran into several issues trying to get the code to work, it’s not as easy as it proclaims to be in the tutorial. I can get my session open, but can not get the request to work.

- (IBAction)facebookTapped:(id)sender {
[FBSession openActiveSessionWithPermissions:nil allowLoginUI:YES completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
    if(error) {
        NSLog(@"Error opening session: %@", error);
        return;
    }

    if(session.isOpen) {
        NSLog(@"session is open");

        FBRequest *me = [FBRequest requestForGraphPath:@"me"];
        [me startWithCompletionHandler:^(FBRequestConnection *connection,
                                         NSDictionary<FBGraphUser> *my,
                                         NSError *error) {
            NSLog(@"My name: %@", my.first_name);
        }];
    }

    }];
    }

My console displays that the session is open if I remove the call to FBRequest requestforGraphpath. If I leave it in, I receive the error “Incompatible block pointer types initializing ‘void(^)(struct FBRequestConection , struct NSDictionary, struct NSError*)’, expected ‘FBRequestHandler’

Now what has me stumped is that this is the exact code shown in the tutorial, excpet that I changed out [FBRequest requestForMe] trying different approaches. None worked.

Can anyone shed some light on this for me?

Thank you.

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

    I was able to solve this issue by changing their original block in the tutorial of:

    if (session.isOpen) {
    FBRequest *me = [FBRequest requestForMe];
    [me startWithCompletionHandler: ^(FBRequestConnection *connection, 
                                      NSDictionary<FBGraphUser> *my,
                                      NSError *error) {
        self.label.text = my.first_name;
    }];
    }
    

    to

    if(session.isOpen) {   
            FBRequest *me = [FBRequest requestForMe];
            [me startWithCompletionHandler:^(FBRequestConnection *connection,
                                             id result,
                                             NSError *error) {
                NSDictionary<FBGraphUser> *my = (NSDictionary<FBGraphUser> *) result;
               NSLog(@"My dictionary: %@", my.first_name);
            }];
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am trying to update NodeJS and running into issues. First I tried
I am trying to populate my rails Test database and am running into issues.
I'm trying to change values in my application.properties file and I'm running into issues
I'm trying to do something very simple in C++/CLI, however I'm running into issues
I'm running into issues trying to run a CREATE TABLE statement for sqlite3 on
I am running into issues trying to separate a form from a view into
I am running into serious issues trying to run JUnit tests with Spring. Here
We are using Entity Framework Code First, and I am running into issues trying
I am running into some issues trying to install a software called MEAD .
I am trying to figure out Entity Framework but I keep running into issues

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.