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

newtoiphonesdk

macrumors 6502a
Original poster
Jul 30, 2010
567
2
I have just been messing with FBConnect and have it setup with a church app that posts a general static come worship with us message to the Facebook wall using this code:
Code:
- (void)postToWall {
	
	FBStreamDialog *dialog = [[[FBStreamDialog alloc] init] autorelease];
	dialog.userMessagePrompt = @"Enter Your Message Here:";
	dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"Join me at Bell Avenue Church of Christ this Sunday Morning @ 9AM!  Click for more information!\",\"href\":\"http://bellavenue.org\",\"caption\":\"We Love Our Visitors!\",\"description\":\"1600 Bell Amarillo, TX\",\"media\":[{\"type\":\"image\",\"src\":\"http://www.316apps.com/lovevisitors.jpg\",\"href\":\"http://itunes.apple.com/us/app/bell-avenue-church-of-christ/id379478795?mt=8\"}],\"properties\":{\"Our Facebook Page!\":{\"text\":\"Bell Avenue Facebook Group\",\"href\":\"http://www.facebook.com/pages/Bell-Avenue-church-of-Christ-Amarillo-TX/263538619113?ref=ts\"}}}"];
	[dialog show];
	
}
That's fine for this instance where all I need is a static unchanging message. How can I set this up so that it posts a link to whatever is in a webview located within the view? I have a webview set up directed to a blog site. What I am interested in, is if they click an article, is there a way to tell the Post to Wall part of the code to post a link to whatever the webview is currently on?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.