简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM