Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook SDK FBRequest requestForMe Incompatible pointer types
    primarykey
    data
    text
    <p>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]).</p> <p>I am following along with tutorial on <a href="https://developers.facebook.com/docs/getting-started/getting-started-with-the-ios-sdk/#coding" rel="noreferrer">this page</a>. </p> <p>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.</p> <pre><code>- (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&lt;FBGraphUser&gt; *my, NSError *error) { NSLog(@"My name: %@", my.first_name); }]; } }]; } </code></pre> <p>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 <em>, struct NSDictionary</em>, struct NSError*)', expected 'FBRequestHandler'</p> <p>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.</p> <p>Can anyone shed some light on this for me?</p> <p>Thank you.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload