Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newtoiphonesdk

macrumors 6502a
Original poster
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
Code:
- (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];
	
}
 
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?
 
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.