So here is what I am trying to do. I have a blog and an iPhone app which shows the topics of my blog entries via the rss-feed. Tapping a topic opens the corresponding blog entry in a web view. Inside the web view I have a button which offers the possibility to share the content vie e-mail or facebook. My question now is how to let the user post the content of the entry to his wall on facebook.
I have already implemented the fbconnect for iPhone SDK and pushing the button opens the fbconnect login dialog. I have also created a facebook app and implemented the following code in my iPhone app:
Code:
- (void)session:(FBSession*)session didLogin:(FBUID)uid { NSLog(@"User with id %lld logged in.", uid);
FBFeedDialog* dialog = [[[FBFeedDialog alloc] init] autorelease];
dialog.delegate = self;
dialog.templateBundleId = XXXXXXXX;
dialog.templateData = @"{\"key1\": \"value1\"}";
[dialog show];
}
It opens and works just fine so far but only displays the text I have configured in the feed template on facebook. How do I tell fbconnect to publish the content of the opened blog entry to the users wall? Any help is highly appreciated!