Search code examples
iosfacebook-ios-sdk

Name parameter ignored in Facebook feed dialog


I try opening a simple dialog from my iOS app to post something on a user's wall. However it seems the "name" parameter is completely ignored.

Here is the code, I use the Facebook SDK from Github, pulled the version yesterday.

NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"This is the name",@"name",nil];
[facebook dialog:@"feed"
        andParams:params
      andDelegate:self];

The dialog shown only shows:

"Post to your wall"
"Write something..."

the text box

"via MyApp"

When actually posting the post is completely empty. Why is the "name" parameter completely ignored?


Solution

  • Seems I've found the solution. It works if you do not pass a description, but pass a caption argument instead. Then the name appears, the caption text below, and the parsed link text below that