开发者

Publish Feed Story Using Facebook API

I want to publish information to user's wall from iphone application. I am using the Facebook SDK for iphone. I found i开发者_JAVA百科n the documentation that I should use FBStreamDialog but this loads a form to the user and s/he write the story to be published, I don't want this behavior. I want to publish user actions at my application and user just needs to click share button, then the application should fill a template story and publish.

I found this use case was available before with FBFeedDialog but this is not supported via the API now.

Any suggestions, what I should do?

//Modified

here's an example for David's solution:

NSString *att = @"{\"name\":\"i\'m bursting with joy\",\"caption\": \"User rated the lolcat 5 stars\", \"description\": \"a funny looking cat\"}";
NSDictionary *attachment = [NSDictionary dictionaryWithObject:att forKey:@"attachment"];
[[FBRequest requestWithDelegate:self] call:@"facebook.stream.publish" params:attachment];


@"stream.publish"


I use this code occur error "The user hasn't authorized the application to perform this action"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜