how to make facebook android app deep links - android

I am trying to create a deep link that will redirect from a url I post on facebook into my android app and I noticed there is something in facebook api called App Links in this link : https://developers.facebook.com/docs/applinks/ but for some reason their docs has been removed and I have not found any possible way to achieve that...
How can I make a deep link from facebook into a specific page in my android app?

Weird that they took it down. Basically you need to implement HTML tags in your web page the link points to. Also you must have URI scheme implemented in your app.
Until the page comes back up I suggest you use their debug site:
https://developers.facebook.com/tools/debug/
You can scrape this test link got reference:
https://onelink-sim.onelink.me/coiD/simbananas

Related

How to open Facebook page with Branch.io link

I am using Branch.io link to open my facebook page in the android app. If app is installed then open app otherwise redirect to facebook page in the browser. I am using this link in emails signature.
Currently, the link opening the facebook app in android & but opens the default facebook user newsfeed not my page. It's working fine in iOS.
I'm using the following format to open the facebook.
fb://page/?id=my_facebook_page_id
If it is working in iOS then why not in Android. Please help.
P.S.
fb://page/my_facebook_page_id seems to work
Please note that this is not the recommended method for deep linking as this URL scheme isn't officially listed on any of Facebook's documentation. This is a hacky solution based on answers to other similar questions on StackOverflow. [Reference- What are all the custom URL schemes supported by the Facebook iPhone app? ]

Get referring url for Android or iOS installation

We have several landing pages that link to Google Play and iOS App Store. I would love to know the landing page that a person came from within the app code. I have searched around and can't find any clear answer. Lots of gray area.
I just want to access the landing page URL in Java or Swift.
I realize iOS and Android are two separate beasts. But does anyone know how I could achieve this?
You will need to use Firebase Dynamic Links this helps you create various links using various alternatives as shown in this quote from the official Firebase source:
You create a Dynamic Link either by using the Firebase console, using a REST API, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain specific to your app.
Then your app can access the link in code using Java or Swift and the link will work even if the user has your app already in their phone and you can set a logic to handle that too and the links are also automatically direct the user to AppStore or PlayStore depending on which device is used.
Dont worry about whether the link will work for both Android and iOS and you can use the api to access the link as this quote says.
With Dynamic Links, your users get the best available experience for the platform they open your link on. If a user opens a Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Dynamic Link in a desktop browser, they can be taken to the equivalent content on your website.
In addition, Dynamic Links work across app installs: if a user opens a Dynamic Link on iOS or Android and doesn't have your app installed, the user can be prompted to install it; then, after installation, your app starts and can access the link.
You can get more information on dynamic links here and check if it will solve your problem.

Deep link in android app

I implemented deep link in my android app. Whenever I clicked the share link its open my app perfectly.
My problem is copy the share link and paste the chrome browser it doesn't open my app.
Sorry for my bad english.
Chrome is an application.
By trying to use deep link in Chrome, you are actually trying to open an app(your app) from another app(Chrome) which is not really what deep link does!
To test your deep link, enter link in default browser of your phone(mostly it is Google Search). And as you say, it is opening. So your deep link is working perfectly fine and you don't need to worry about that.
Now, How to make share link work from Chrome:
For that, you need to use 'a href' tag that will be defined on your website! Moreover, you need to implement App Link instead of simple deep link. You can refer to this answer here for this Deep Link not working in Chrome for Android .
You need to actually click on a link pointing to that URL to trigger the deep-link Intent, writing the URL manually doesn't trigger it.

Android Facebook sharing with deep links

I am currently sharing a link in my Android app by creating a chooser with an ACTION_SEND-Intent. I now want to add deep linking to the posts which already works with links from our iOS app into the Android app but not from links shared with the Android app. I think the reason is that by using an Intent, the app that actually posts the share is the Facebook app and not my own app.
So I probably have to use FacebookDialog to get this working, right?
If this is so, can I somehow still get the chooser? I still want the user to be able to select the service to share with.
I also know about App Links, does anyone know if using this would also solve the issue? Can links via App Links be referenced to the right app although they were shared with the Standard Facebook app?
The Facebook App Links documentation does not say much about sharing content from the app, only how to link from a website.
Since there's no app attribution available from a standard ACTION_SEND intent, Facebook will not know how to deep link into your app.
Using FacebookDialogs will give you app attribution, but will not address the chooser issue.
Using App Links is your best bet. It will tell Facebook how to deep link into your app (Facebook will scrape any link that is shared, so it will know about your App Links), and is a completely server side change, so you don't need to change any of your client code at all (assuming your client code already supports deep linking).

Redirect to my web page by using Android Facebook SDK

I'm trying to redirect user to specific web page after log in. I'm using Android Facebook SDK. Full internet of examples how to post on user's wall, but I couldn't find any examples or advices how to redirect for example to my app fan page. I have analyzed SDK code - Facebook.java, I saw that they're using redirect_uri parameter, so I've tried to write this parameter myself, but I got only API error code (given URL is not allowed by the App configuration) or page not found message. Maybe I can't do it by using Android Facebook SDK and I need to use different tools, api? Any advice will be appreciated.
Thanks in advance.
I don't know if you still have this problem now.
I'm not sure also if i understood your problem fully, but if you had the same problem that led me to this page (I wanted my android-application to call the browser at a specific page) this code will do the job.
PeladroidLiteActivity.this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.peladroid.com")));

Categories

Resources