The Crazy Chimp The Crazy Chimp - 15 days ago 8
iOS Question

Posting to message Facebook from iPhone/iPad

I have a 2-part question about posting messages to Facebook.

1 - I want to pre-populate the message that the user is going to post i.e. where it says 'Say something about this...'. Is this possible? If so, how? At the moment I have the following setup to produce the post shown below:

NSMutableDictionary *params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Steak Expert", @"name",
@"The must-have iPhone/iPad app for carnivores!", @"caption",
@"Steak Expert helps you to cook every steak to perfection! With this app in your hand you'll never need to worry about over-cooking or under-cooking a steak again. Perfection every time! ", @"description",
@"https://m.facebook.com/apps/MY_APP_ID/", @"link",
@"http://fbrell.com/f8.jpg", @"picture",
@"Cooking a steak using Steak Expert!", @"message", // I thought this would be the required field to populate the text
nil];
[facebook dialog:@"feed" andParams:params andDelegate:nil];


enter image description here

2 - The other part of my question is based around the view shown above. Is it possible to automatically post to the wall without the need for this view to appear? Seeing as the user must authorise the app to even connect with Facebook (plus any other specified actions) I can't see it being an issue. If so please could someone advise on how to achieve this?

Answer

It is the message field that you are talking about.

message - This field will be ignored on July 12, 2011 The message to prefill the text field that the user will type in. To be compliant with Facebook Platform Policies, your application may only set this field if the user manually generated the content earlier in the workflow. Most applications should not set this.

http://developers.facebook.com/docs/reference/dialogs/feed/

Hope this helps