如何在FB中发送网址

时间:2011-07-15 05:22:11

标签: iphone

- (void)postToWall {
FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
    dialog.userMessagePrompt = @"Enter your message:";

**NSString *strFirstForActionLink** = @"[{\"text\":\"LOCATION!\",\"href\":\"http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318&markers=color:red|color:red|label:C|40.718217,-73.998284&sensor=true\"}]";
NSLog(@"action link url is %@",strFirstForActionLink);

**dialog.actionLinks = @"strFirstForActionLink";**
}

当我将此url字符串存储到字符串变量中然后传递此变量时,它会产生问题..... 请建议我

0 个答案:

没有答案