链接到网页上以打开instagram应用 [英] Link on a webpage to open instagram app

查看:290
本文介绍了链接到网页上以打开instagram应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在网页上设置链接,以便它尝试打开instagram应用. (如果已安装)?

Is there a way to setup a link on a webpage, so that it tries to open the instagram app. (if it's installed)?

我正在为响应快速的网站执行此操作,因此我不在另一个应用程序"中.

I'm trying to do this for a responsive website so I'm not in another "app".

这不起作用:

<div>
    <a href="instagram//:media?id=434784289393782000_15903882">instagram://media?id=434784289393782000_15903882</a>
</div>

我已经按照答案中的建议纠正了错字,并在iPhone上进行了测试.做得好!谢谢@Krisrak!但是我正在Android Galaxy Nexus上进行测试,但无法正常工作.我看到2条消息,首先是您必须注销才能重设密码".然后它消失了,我看到另一句话:对不起,我们无法加载该链接."

I've corrected the typo as suggested in the answers and tested on iPhone. Work fine! Thanks @Krisrak! But I'm testing on Android Galaxy Nexus and it does not work. I see 2 messages, first "You must log out in order to reset your password." then it fades out and I see another saying "Sorry, we weren't able to load that link.".

谢谢!

推荐答案

您有错字,href应该是://而不是//:

You have a typo the href should be :// not //:

<div>
<a href="instagram://media?id=434784289393782000_15903882">instagram://media?id=434784289393782000_15903882</a>

这篇关于链接到网页上以打开instagram应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆