English 中文(简体)
带有图像图链接的电话面板围墙
原标题:iphone facebook wall posting with image map link

is possible to attach a link (image) of a google map on the side of my wallpost throug iphone? my wall post is ok, but i ve no idea how to do with the map. Ps in my app i ve implemented also mapkit, i don t know if i make a gquery with coordinate to obtain map link or i must work using the position that i have on mapkit

i. 找到我的解决办法,绘制山洞静地图:D

我的守则如下:

    dialog.attachment = [NSString stringWithFormat:
                     @"{ "name":"%@ si trova a %@"," ""media":[{"type":"image"," 
                     ""src":"http://maps.google.com/maps/api/staticmap?size=100x100&zoom=14&markers=color:blue|label:here|%g,%g&mobile=true&sensor=false","
                     ""href":"http://developers.facebook.com/connect.php?tab=iphone/"}],}",
                     _facebookName, citta.text, mylat, mylong ];
问题回答

a. 显示图像使用法(摘自 de)

- (IBAction) publishStream: (id)sender {

  SBJSON *jsonWriter = [[SBJSON new] autorelease];

  NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: 
                               @"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil];

  NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];

  NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
                            @"a long run", @"name",
                            @"The Facebook Running app", @"caption",
                            @"it is fun", @"description",
                            @"http://itsti.me/", @"href",
                            [NSArray arrayWithObjects:
                             [NSDictionary dictionaryWithObjectsAndKeys:
                              @"image", @"type",
                              @"http://www.gogle.com/", @"href",
                              @"http://a1.twimg.com/profile_images/457512510/iconoTwitter_bigger.gif", @"src",nil]
                             , nil ]
                            ,@"media", nil];


  NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
  NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                 kAppId, @"api_key",
                                 @"Share on Facebook",  @"user_message_prompt",
                                 actionLinksStr, @"action_links",
                                 attachmentStr, @"attachment",
                                 nil];


  [_facebook dialog: @"stream.publish"
          andParams: params
        andDelegate:self];

}




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签