I know – I have read the documentation – but frankly Facebook is horrible at it. I can’t figure out how to send a request that illicits a response. Here’s what I’m trying:
NSURL *fbID = [NSURL URLWithString:@"https://graph.facebook.com/me?fields=id"];
fbUserID = [[NSData alloc] initWithContentsOfURL: fbID];
Where should this code go? Is there a specific class it is looking for if I have set ‘self’ as delegate?
How are you trying to integrate FB into your app? I have been looking into Facebook connect recently and found their documentation very helpful (http://developers.facebook.com/docs/guides/mobile/#ios). I know you said you looked at the documentation, but for me after going through their steps for iOS I was able to make an app that allowed users to sign in and give me access to their basic information, including ID. After going through authorization, I had the following code in my app delegate:
This gets the user’s full name after logging in and displays it. You can do the same thing for getting their ID.