No Matter what i do, i cannot get a post published to an application page wall (the app being logged into) via an iPhone application. I'm able to log in using FBLoginDialog and then retrieve data to populate a tableview, however when i click a button to publish some test content it doesn't work. Here is the button action:
(void)compose:(id)sender; {
NSString *tid=@"115372005166292"; NSString *body = @"My Test";
NSArray *obj = [NSArray arrayWithObjects:body,[NSString stringWithFormat:@"%@", tid],nil]; NSArray *keys = [NSArray arrayWithObjects:@"message",@"target_id",nil];
NSDictionary *params = [NSDictionary dictionaryWithObjects:obj forKeys:keys]; [[FBRequest requestWithDelegate:self] call:@"facebook.stream.publish" params:params];
}
I have also used the FBStreamDialog which works, however i'm faced with two issues there. The dialog lacks customization and i'm unable to handle the callback when the item is posted (e.g. reload the tableview)
I've been searching the internet and all of the examples are similar to the code above, so i'm not sure what i could be missing.
Thanks