PDA

View Full Version : FBConnect Post To Wall Question




newtoiphonesdk
Aug 12, 2010, 12:31 PM
I have FBConnect setup and I just have one last question. How can I autofill the post message part? To where they login and when it comes up with post to wall, it already has a message prefilled in? Here is my code for the post part so far
- (void)postToWall {

FBStreamDialog *dialog = [[[FBStreamDialog alloc] init] autorelease];
dialog.userMessagePrompt = @"Enter Your Message Here:";
dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"Facebook Connect for iPhone\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone\",\"caption\":\"Caption\",\"description\":\"Description\",\"media\":[{\"type\":\"image\",\"src\":\"http://img40.yfrog.com/img40/5914/iphoneconnectbtn.jpg\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}],\"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}"];
[dialog show];

}



Anne R. Kist
Aug 12, 2010, 01:22 PM
How can I autofill the post message part?
You can't.

robbieduncan
Aug 12, 2010, 01:30 PM
I've not looked at the API at all but if FBStreamDialog is a subclass of UIView can you not get all it's subviews (and if required their subviews and so on) until you find the text input (I assume a UITextField) and add the text you want?

newtoiphonesdk
Aug 12, 2010, 02:36 PM
I know you can set a website to view on there as well, like how Engadget does with posting articles to Facebook. How do you set that up?

Anne R. Kist
Aug 12, 2010, 02:40 PM
I know you can set a website to view on there as well, like how Engadget does with posting articles to Facebook. How do you set that up?
Have we moved on from the prefilled message concern already?