Link on a webpage to open instagram app

不问归期 提交于 2019-12-02 23:54:13

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

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

1st Method

<a href="http://instagram.com/_u/{USERNAME}/">Link to Instagram Page</a>

  • Ask user to select application to launch with

2nd Method

<a href="instagram://user?username={USERNAME}">Link to Instagram Profile</a>

  • If user installed instagram application : Directly launch page with native application
  • If user not installed instagram application : Do nothing

Tested on Android 4.4 Chrome

Phúc Hoàng Trương

For Android, you can try use this ( both for Chrome and Android's browser)

intent://instagram.com/_n/mainfeed/#Intent;package=com.instagram.android;scheme=https;end

e.g:

<a href="intent://instagram.com/_n/mainfeed/#Intent;package=com.instagram.android;scheme=https;end"> test open Instagram ANDROID</a>

For browsers in android, if you want to link to a specific instagram page, try this:

<a href="http://instagram.com/_u/USERNAME/">visit our instagram page</a>

Try this :

Works 100% <a href="instagram://user?username=untitled.tiff">untitled.tiff</a>

untitled.tiff

Unfortunately, UC browser and Mozilla Firefox do not open native app via url, but , Chrome and default browser or htmlviewer in android does open the the native instagram android app

try following links in chrome browser(Android)/ native HtmlViewer :

<a href="http://instagram.com/p/">Open Instagram</a>
<a href="https://instagram.com/p/">Open Instagram</a>

<a href="http://instagr.am/p/">Open Instagram</a>
<a href="https://instagr.am/p/">Open Instagram</a>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!