I m developing an iPhone app which includes facebook wall posting.After log in, I post to user\'s wall by following code:
NSString *appIcon = [NSString stringWit
The solution above uses FBPermissionDialog which is fine for changing the permissions after login, but you're better off just asking for the permission on the initial login. That way you are not opening up the external browser twice.
if (![facebook isSessionValid]) {
NSArray *permissions = [[NSArray alloc] initWithObjects:
@"publish_stream",
nil];
[facebook authorize:permissions];
[permissions release];
}