Noura
Noura

Reputation: 722

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 in 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];

Upvotes: 1

Views: 1951

Answers (2)

user376082
user376082

Reputation: 11

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

Upvotes: 1

David Sowsy
David Sowsy

Reputation: 1680

@"stream.publish"

Upvotes: 2

Related Questions