Intercepting links from Facebook app to open my Android app - android

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.

Related

Create an AppLink for existing Content that works in the Facebook App

I have existing content ( e.g. https://3doo.com/web/medium/details?mediaId=41c087be-2f4a-4ee6-8336-2d56a702fba8 )
For this content I have created meta tags according to the facebook metadata reference and AppLink documentation.
The AppLink works fine when opened on:
PC Browser
Android Browser
It does not work when opened in the Android Facebook app. A short notice pops up that says "There was a problem opening the app." and nothing else.
How Do I get my AppLink to work with the Android FB App?
To properly configure your Android Links to deeplink from Facebook, you need to properly configure Facebook App Links.
The easier option is to use a third-party like Branch's Android SDK that handles Facebook deep linking as well as linking from all of platforms in one packaged link.
So according to the metadata reference of facebook the "al:android:package" tag was optional, without explaining what about it is optional.
It is optional if you don't care about opening your app via deeplink from the facebook app. If the facebook app on Android should be able to start your Android App you have to provide the fully qualified classname of the activity to which the facebook app should redirect.

Deep linking Facebook android / ios issue

I wan to create a deep link that opens the facebook app. But I noticed that the link is different from ios and android. iOS triggers fb://profile and android fb://page.
How can I manage that the app will open correctly on both devices?
Deep linking is supposed to be done for your own app. Even though you use anyone of those links you can open your own app when these links are fired in browser. Even you don't have control when that link is opened in browzer. i.e. User will be shown the number of options for opening that link for those apps who have registered for that link in their intent filter.
If you want to open facebook app then use Intents for that.

Facebook/Gmail/Whatsapp/Twitter deep linking in 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.

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

HTML button to open Mobile Apps

I am developing a responsive website and it will have a login button. This login button should redirect to an application installed on the users phone.
Is it possible to create an html/css button and once clicked, it opens up an installed application on your mobile whether its android or ios ?
Many thanks for your help guys !
Open app:
http://www.techrepublic.com/blog/software-engineer/web-to-app-interoperability-launch-your-android-app-from-the-web/
Using an intent to direct the user to the app download page:
http://www.techrepublic.com/blog/software-engineer/web-to-app-interoperability-launch-your-android-app-from-the-web/
Here is a link to some of apple's in-app url schemes, not all of the apps have schemes, but you might be able to find them in the developer notes of whatever app you're linking to.
https://developer.apple.com/library/safari/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html

Categories

Resources