Android Facebook sharing with deep links - android

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).

Related

how to make facebook android app deep links

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

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.

Android Deep Links and App Links Confused

Can anyone explain in real life example what is the difference between
App Links - https://developer.android.com/training/app-links/deep-linking.html
Deep links - https://developer.android.com/training/app-links/index.html
App Indexing - https://developer.android.com/studio/write/app-link-indexing.html
in Android?
Have read too many posts and documentations, but still cannot get the exact gist.
I understand that App links works with Android 6.0 and Deep Links with 4.2. but in performance, they are doing the similar task.
App Indexing allows Google to crawl your app content (as it would on a website).
Deep Links vs Android App Links:
App Links are just deep links that have been verified for a website, AND allows opening URLs in the associated app directly without asking the user to select the app (via the disambiguation dialog). With App Links, your app designates itself as the default handler of a given type of link (though the user can override it from device system settings)
A nice overview of the differences is at https://developer.android.com/training/app-links/verify-site-associations?authuser=0
Also see comparison table below, lifted from the above link at the time of writing
If you have an app or are developing an app, app indexation and deep
linking are things you definitely need to be paying attention to.
Basically, Google wants to treat your app like a website. It wants to
crawl it and index it so that search results can return specific pages
from an app in mobile searches. That ability to return specific pages
within an app? That’s deep linking.
What is Deep Linking?
Deep linking, in a general sense, involves linking to specific content
within a website or app, rather than to the homepage. Here we’re
talking in particular about getting specific elements of an app to
show up in search results on a mobile device, allowing users to open
an app directly from a search results page. Note: Users will only see
this prompt if they have the particular app installed.
Photo:
What Is App Indexing?
App indexing is the result of getting your app in Google’s index to
enable deep linking. By allowing Google to index pages within your
app, features (or promotions) within the app can begin showing up in
users’ mobile searches, driving visits (and hopefully conversions) to
the app.
What is an App Linking with the example of Facebook
When someone shares content from within an app that has Facebook App
Links applied, anyone clicking on that link will be able to access
that content through the app. This can be done using an app
alternative to existing web content, or app-only content, and works
either from ‘web to app’ or ‘app to app’. The feature works with
Android, iOS and Windows phones
Photo:

Post/share to iOS/Android/WP Facebook/Twitter application from web page

I would like the ability to share content/page URL to a mobile's native application from a webpage. At the moment very few mobile users appear to be signed into Facebook/Twitter through the website URL, but rather through the native application. This obviously creates a problem that I can't find a real solution for.
Facebook
<a href="twitter://>Twitter</a>
http://jsfiddle.net/yyqj7u6L/
Both these links open the native app on Facebook & Twitter (if installed), but don't appear to have the functionality to post a status/share content without manually typing in.
I have checked the documentation here
http://wiki.akosma.com/IPhone_URL_Schemes#Facebook
With no luck.
My other thought about this problem is to target the share ability built into most mobile browsers, for example on Chrome I have the option to share via Facebook and so on. Although very little seems to be available about launching this feature from within a web page? I guess there is some security issues with this.
I did have a good look on here to find similar solutions but nothing quite hit the spot, related directly to sharing to native app from web page.
The code below should work for Twitter.
Share to Twitter

Android app for third party that can share on Facebook

I'm developing (actually it's done, only the Facebook and Hyves shares are missing) Android mobile app that should share image to Face and Hyves.
There are couple of problems that I do not understand, so I need (urgent) help.
My idea was to save user/pass on device, and to check during the input if these details are correct. Then I wanted to somehow use API's to share image on the wall, preferably without any additional apps created, just share photo like you would share it from gallery.
Now I'm reading Facebook Developers guide, and it advises to create facebook app with domanin / e-mail, but this is not my app and I do not have authority to create anything in the name of third party.
So, what is the proper way to share photo to Social Networks, without creating "apps" and getting apps ID and stuff.
It seems that I can't find that kind of info on FB Developers page, and I'm afraid how will I get proper information for hyves (Dutch social network, and I do not speek dutch).

Categories

Resources