I am having a screen through which user can share referral code on Facebook, WhatsApp, Twitter and Instagram. (I already have an API to generate referral codes). Now I was going through branch.io documentation. But all I could find was deep linking. I am not able to understand how to use branch.io to share the referral codes across all these platforms or should I use something else to program this functionality.
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
4
Answers
This will allow you to share on every application possible
Why not send referal code / link using sharing intent
see the Documentation for more info
and you can filter the app using the answer over Here
Best way to share such information is via http url’s as most of the sharing platforms don’t allow to post pre-filled text.
Most of the sharing platforms read the meta content inside the html page of the url and make a post accordingly.
Go through this link for meta tags to be used for
Facebook
:-https://developers.facebook.com/docs/sharing/webmasters
And, for sharing links use this:-
Alex from Branch.io here.
We actually used to offer a referral code feature exactly as you’ve described, but deprecated it a while back in favor of a referral link system. The reason why is actually quite interesting: our partner apps found codes unnecessary and a lot of extra work. The way Branch handles referrals is fundamentally different and far more user-friendly, so you actually don’t need to make the user enter a code at all.
Traditional app referral process
Inviting User
gets a codeInviting User
gives a code to a friend (Invited User
) and says ‘go download this app and enter my code!’Invited User
hopefully downloads the app, hopefully finds out how to enter a code, hopefully enters the code correctlyInviting User
gets a rewardAs you can see, plenty of places where that process can go wrong.
Branch referral process
Inviting User
gets a linkInviting User
sends the link to a friend (Invited User
)Invited User
clicks the link, is sent directly to the Play Store, downloads the app, and automatically triggers the referral redemption logic without any manual workInviting User
gets a rewardThis works because Branch tracks the user who originally created the link, and can report back on that when the new user successfully downloads/purchases/whatever else the first time after opening the link. It is a much simpler and more seamless process, and the Branch referral infrastructure is so reliable that it ‘just works’.
Here is the documentation page for setting this up: https://dev.branch.io/features/referral-programs/
Using the Share Sheet
Branch offers a pre-built share sheet on Android that you can use to post these links via any installed app. It may not be especially useful to you because you’ve already built your own custom icons, but it would avoid an error if one of those apps is not available.