iPhone FBConnect, dashboard.addnews

Posted by Dmitry on Stack Overflow See other posts from Stack Overflow or by Dmitry
Published on 2010-04-20T13:07:18Z Indexed on 2010/04/26 9:43 UTC
Read the original article Hit count: 402

Filed under:
|
|
|

Hi,

The question is: how to add news via FBConnect??

I have the following code:

NSString *newsBody = @"[{\"message\": \"News message\" }]";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObject:newsBody forKey:@"news"];
[[FBRequest requestWithDelegate:self] call:@"facebook.dashboard.addnews" params:params dataParam:nil];

After I sent the request I received the success responce. But I can't see the new news in the facebook account!!

Also, I tried to add full info into news parameter (http://wiki.developers.facebook.com/index.php/Dashboard.addNews)::

NSString *newsBody = @"[{\"message\": \"News message\",\"action_link\": {\"text\": \"link text\",
\"href\": \"http: //google.com\"} }]";

But this request returns error :(

Thanks in advance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about fbconnect