Facebook/Gmail/Whatsapp/Twitter deep linking in Android - android

I could not find a specific solution. please give me step by step solution so that i can integrate the deep linking of Facebook, Gmail, Twitter and Whatsapp. i have applied the library of google play services and facebook sdk and also unable deep linking in my account but i did not find the code for make my app link. please give me solution. Thank you

You can deeplink if the application provides their SDK. fortunately facebook, gmail, and twitter provides SDK, but whats app not providing any sdk. so you can deep link all other applicaiton you listed out with your app, but not WhhatsApp.

This is a partial answer (only for FB)
According to your requirement you need to do extra works to ensure deep linking.
For FB:
Create a fb app with share permission ( you need to get approval so that user can share from your app using fb sdk )
While sharing you must share your website which contains meta data for Android/iOS device (check android/iOS developer page for that meta data)
Now if user clicks on the share content using mobile they will be taken directly to the app. If they click from the desktop device, you can redirect them to html version or to google play site or whatever page you like.
I suspect Google and Twitter has similar mechanism.
Hope this helps.

Related

Deep linking from Facebook Ad to 3rd party app

I'm trying to setup deep links from a Facebook Ad to an app that I do not own (Shopee). Shopee does not provide any facility/guides to deep-link to them at the moment. I've tested that the app has properly setup deep linking on Android, i.e. clicking the link https://shopee.ph/Korean-Mini-Cute-Sling-Bag-i.30650129.2385916193 on Slack or Gmail properly opens the Shopee app.
Is it possible to make deep links work on Facebook for apps that you do not own? So far, I've tried doing the steps detailed in https://developers.facebook.com/docs/app-ads/deep-linking/. However, I don't know where to get some of the platform settings needed by Facebook:
iOS
Bundle ID - where can I get this?
iPhone Store ID - Seems this can be easily taken when visiting the app store. I can get some of the details from https://shopee.ph/apple-app-site-association as well.
iPad Store ID - Similar to iPhone Store ID I guess.
Shared Secret - I'm someone who has no experience with iOS and Android programming. I'm afraid this setting is something that I couldn't get?
Android
Google Play Package Name - Should be com.shopee.ph
Class Name - I think this can be known by going through the app's apk/files
Key Hashes - Can this be taken from the app's apk/files as well?
I tried compromising by linking the Facebook ad to my website that has deeplinks. But clicking the links will just redirect Facebook's webview to the product's web info rather than opening the app.
I guess this question boils down to whether it's possible to get the app's Shared Secret for iOS and the Key Hashes for Android.
Any response will help me go to the right path or end the path altogether. Thanks.
Sorry, but if you don't own the app then you shouldn't possess shared secret and key hash of the app.
Shared Secret and Key hashes both are something that is very specific to the app created. It is mostly controlled by the app owner in case you need it you have to get that transferred from the app owner. But I doubt anybody will do that.
Also, this is some kind of hack that you are doing this should be definitely avoided without permission from the app owner.
If you are the owner then for
- Android you can try this url.
Have you tried with Android Intents? They can directly link to an app (including deeplink information). Of course you wouldn't now if its installed through adds beforehand. Firebase Dynamic Links solves that problem where you can decide to link to website or Play/App Store as fallback. They also open the native app from facebook browser (and others) and use Android Intents under the hood.
Think you can't use Firebase Dynamic Links for an app you don't own. But if redirecting to your own website is an option maybe you can implement a similar mechanic.
Here is the chrome documentation for Android Intents:
https://developer.chrome.com/multidevice/android/intents
Adjust also has a summary article about deep linking, covering Intents and iOS:
https://www.adjust.com/blog/dive-into-deeplinking/
As your expected behavior to open app but now it will just redirect Facebook's web view to the product's web. Unfortunately it is not currently possible to directly launch a third-party app from within the iOS Facebook app. This is a known issue that Facebook has essentially written off as wontfix. This is still possible in the Android Facebook app, but it's unfortunate they haven't been more transparent about the change to the iOS version because there is quite a bit of confusion about it.
But you cna do the same thing using services like Branch.io get around this by implementing a judicious combination of App Links, URI schemes, and iOS Universal Links. Essentially what you need to do is open a page in the webview and then have a button or other user-driven CTA event that launches the app from there. It's an extra step for the user, but currently the best workaround. If you just want to be able to post a link that goes into your app when it is installed and otherwise goes to a webpage (or the App/Play Store), then Branch links are definitely your simplest solution.

Do we have any mechanism to track if app is installed from a given URL?

Example:
Link : www.example.com/bje3x
The link will redirect to playstore or appstore url. So if user installs the app from the playstore, can we know if the app ins installed from the redirection URL above?
The question is tagged with firebase-analytics so I guess you are comfortable using Firebase. Then one possible solution for you would be to use Firebase Dynamic Links. They are designed for this use case.
In short you define what is your destination URL - kind of deep link - and if app is installed it just works as a deep link. If app is not installed, it can redirect to AppStore and then inside the app at launch you can retrieve your deep link. Of course it's a bit more complex than that, but essentially it allows you to know what brought the user in.
In the simplest form Dynamic Links use domain provided by Firebase (ending with .page.link) but you can also configure your own domain. Also you don't always get 100% matching accuracy, but for the most part - it should work.
There are also other solutions like branch.io etc. If you look for "deferred deep linking", "smart links" or "dynamic links" you will find more.
Yes we can achieve this by Deep Linking
A deep link is an intent filter system that allows users to directly enter a specific activity in an Android app. However there is an issue about this process. When a user click an URL, it might open a dialog which asks the user to select one of multiple apps handling the given URL.
On the other hand, An Android App Link is a deep link based on your website URL that has been verified to belong to your website. When user clicks that URL, it opens your app.
Please refer this Url
https://medium.com/#muratcanbur/intro-to-deep-linking-on-android-1b9fe9e38abd

Intercepting links from Facebook app to open my Android app

Referring to this post, I have managed to intercept link from Google search result to open my app, but is there any way I can intercept link from Facebook app to open my app? At current stage, clicking on the link only open my webpage in Facebook's build in browser and not my app.
Thanks in advance.
You can do so using app linking (not deeplinking, but similar). You have to provide meta tags to your hosted website. Refer this link
https://css-tricks.com/essential-meta-tags-social-media/
. You have to provide your package name and fb app id to the meta tags, and you will be redirected to your app.

Why are Branch links are not deep linking from Facebook app on Android?

I have integrated Branch in my Android app for deep linking and I'm having an issue. The issue is:
On clicking Branch URL from Facebook app's older version (v3.3) works & deep link data is returned in referringParams, but on clicking same Branch URL from Facebook app's latest version (v30.0.0.19.17) deep link data is not returned in referringParams.
I have an iOS version of my Android app with Branch integrated and everything works fine on iOS.
I also have a Facebook app for my Android & iOS apps.
Facebook (around April 8th) updated the way their internal Webview handles URI schemes. They actually stripped out Branch referral data because they implemented App Links correctly. You'll need to upgrade to Branch v 1.4.5 and implement a few extra things.
From Branch's documentation, you'll see:
Branch uses the Facebook App Links protocol to pass the deep links through to your app from Facebook. Funny enough, if you also have a Facebook app configured in the developer portal and you choose 'Deep link from feed', Facebook ignores it's own protocol. Make sure to uncheck this option in your Facebook app.
Then, you'll need to add a permission inside your manifest, and hook into onNewIntent inside your Activity. More information here: https://github.com/branchmetrics/branch-android-sdk#important-migration-to-v145
Let me know if this helps!

Facebook deep link do not opens Google Play when APP not installed

I am developing an Android application with Facebook login and sharing, and also deep linking.
When the user have the APP installed, everything goes well:
Facebook login/logout
Share a link with Share Dialog (Feed Dialog when FB app is not installed)
Launch the APP with AppLinkData when clicking the news feed shared from this APP
However when the APP is not installed, the news feed just open the shared link with browser.
But I want is the news feed shared from the APP can send people to the APP's Google Play page.
Can anyone give me some hints? Thanks in advance!!
Here is want I have done for the application:
I created a New App in Facebook developer page. I enabled Single Sign On & Deep Linking in Setting page
http://i.stack.imgur.com/KM9tn.png
I added custom URL scheme in AndroidManifest.xml
I've read the Linking to your app from news feed section from Facebook below:
https://developers.facebook.com/docs/android/share#applinks
Saying when a person clicks on a story generating by the APP, Facebook will check App installed? and Mobile Only?.
How can I set Mobile Only for my Android application?
I would greatly appreciate it if you kindly give me some feedback.
Thank you very much!
Deeplinks do not come with an automatic fallback. If a user clicks one and does not have the app installed, then they will either see a blank page or an error message.
If you want your deep links to redirect to the Google Play Store, you can set up fallbacks using Facebook’s App Links protocol on your website. In this case the fallback would be the Google Play store. According to App Links, Facebook should respect that protocol and fall back to the Google Play Store.
https://developers.facebook.com/docs/android/share#linking

Categories

Resources