I’m trying to post a simple status update on the Facebook iOS SDK. At the moment, if I include the link parameter, everything will work:
NSMutableDictionary *params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Name here", @"name",
@"Caption here", @"caption",
@"Status update", @"description",
@"http://www.apple.com.",@"link",
nil];
[facebook dialog:@"feed"
andParams:params
andDelegate:self];
But once I remove link none of the remaining parameters are acknowledged and I’m left with a blank message. I simply want to perform the same sort of post you can achieve with Facebook request whereby providing a string for the message parameter is enough for the status update.
Not sure where I’m going wrong.
Actually posing of status messages with feed dialog isn’t an option and it’s actually not intended to be user like this.
You can consider one of the options:
publish_streampermission and than issuePOSTrequest to Graph API withmessageparameter (feedconnection ofuserobject), seestatusesconnection documentation (IMO it seems as an good way to go, if you don’t afraid to askpublish_streampermission).Note: I’m not completely sure about inability to achieve this with
feeddialog, so I may be wrong, anyone who know this isn’t the case please correct me.