Facebook Connect for iPhone – Facebook Developer Wiki

While connecting to Facebook isn’t rocket science, it isn’t 100% straight forward either. These links sd help…

Facebook Connect for iPhone – Facebook Developer Wiki

Their api is pretty good, but doesn’t match 1-to-1 for their Objective-C library as far as params:

http://wiki.developers.facebook.com/index.php/Photos.upload

This page helps step you thru getting their code in your project…

http://www.mobileorchard.com/marketing-in-code-part-2-setting-a-users-status-in-facebook-from-an-iphone-app-a-tutorial/

I had to make a change to the Facebook code for uploading an image. Their doc says the upload file parameter is to be raw data which their code handles, however, it states there is no name. That’s fine. But, the sig generation doesn’t handle this well. If there’s no name, it sdn’t add it to the sig…
[sourcecode lang=”cpp”]

– (NSString*)generateSig {
NSMutableString* joined = [NSMutableString string];

NSArray* keys = [_params.allKeys sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];

for (id obj in [keys objectEnumerator])
{
// if there’s no name, don’t add it to the sig
if (0 == [obj length])
continue;
[joined appendString:obj];
[joined appendString:@”=”];
id value = [_params valueForKey:obj];
if ([value isKindOfClass:[NSString class]]) {
[joined appendString:value];
}
}

[/sourcecode]