当前位置: 动力学知识库 > 问答 > 编程问答 >

facebook - iPhone FBConnect, dashboard.addnews

问题描述:

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!

网友答案:

I found the answer. The FBStreamDialog should be used to publish the news. It means that the custom interface cannot be used for this purposes. :( Also, just wanted to say that FBConnect it's a one big mess!! Currently fighting with the bug when after clicking Cancel button in the FB dialog the dialog firing the event dialogDidSucceed but not dialogDidCancel. Such a big mess!!!

分享给朋友:
您可能感兴趣的文章:
随机阅读: