Android deep link into Instagram app
Asked Answered
B

4

5

Instagram has published url schemes for iOS deep linking, but they haven't created documentation for Android.

Is there a way to deep link into the instagram app on Android to go to particular places in the Instagram app, such as specific posts in Instagram

From a technical perspective, this should have been included in Instagram's Android app and documentation many years ago, but I am not aware of it

There may be some hack way to achieve the same result that people have figured out, so any insight is appreciated.

My instagram app does not have comment access granted from Instagram, and has been denied this particular functionality so sending a comment via API is not an option and I would prefer the user opened the instagram app.

Bacon answered 6/4, 2015 at 21:4 Comment(0)
L
10

Instagram has registered urls on Android. When you try opening an instagram link it will prompt the user and ask them what app they want to use to handle the url. Choices will probably include various browsers, and the instagram app. When the user selects "always" and picks instagram to handle the url, it will use instagram as the default handler for instagram.com urls from then on.

Basically, you don't need to worry about it. It just works.

Lancewood answered 6/4, 2015 at 21:50 Comment(2)
What are the registered urls? I would like to concatenate a string to take the user directly to a particular post within instagram. To clarify, I have information about instagram comments and some information about particular posts, but I will need to construct an instagram link for the IG app to interpret it properlyBacon
I see now, thanks! my situation still requires me to reconstruct the url to make this work but I might be able to figure this outBacon
H
5

You can directly open app with specific user name:

instagram://user?username=$instagramPageName

Hereabout answered 8/1, 2021 at 13:41 Comment(0)
P
1

With bellow link you can access to Instagram directly in android:

intent://instagram.com/_u/ebadgh/#Intent;package=com.instagram.android;scheme=https;end

You must replace ebadgh with your username

Pasto answered 10/10, 2016 at 0:13 Comment(1)
Is that goint the open the Instagram app with the given user account if among multiple logged in accounts in the app?Kiernan
V
-1

It seems you want to link to a specific photo on a specific user's Instagram feed.

Using the media endpoints, use getString("link") when parsing the jsonArray at the index for the jsonObject containing the "image" and "comment".

Villosity answered 18/10, 2015 at 4:37 Comment(1)
I apologize about not following the correct way to post answers.Villosity

© 2022 - 2024 — McMap. All rights reserved.