带有图像地图链接的 iPhone Facebook 墙贴
可以通过 iPhone 在我的墙贴侧面附加 google 地图的链接(图像)吗? 我的墙贴没问题,但我不知道如何处理地图。 PS在我的应用程序中,我也实现了mapkit,我不知道我是否制作带有坐标的gquery来获取地图链接,或者我必须使用我在mapkit上的位置来工作,
我已经通过谷歌静态地图找到了我的解决方案: 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 ];
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've found my solution with google static maps :D
here's my code:
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 ];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要发布图像,请使用以下代码(从演示应用程序中提取)
to post a image use the following code (extracted from demo app