I am working on an Android App. I am working to add "Invite Friend" feature to my app. It goes to my AppLinkUrl
successfully but Show an Error.
My Manifest code is as below-
<!--Abhishek Tandon FB invitation Code-->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="com.tandon.mynewsapp//https://my_fb_url_here" />
</intent-filter>
And below is my Code for InviteFriend Activity-
//Abhishek Tanodn FB code for InviteFriend Activity
FacebookSdk.sdkInitialize(getApplicationContext());
Uri targetUrl = AppLinks.getTargetUrlFromInboundIntent(this, getIntent());
if (targetUrl != null) {
Log.i("Activity", "App Link Target URL: " + targetUrl.toString());
When I run this app I am redirected to Facebook page but I cannot see anything related to my app.
Please let me know where am I doing wrong.
OR Please tell me the right way to invite friend from Facebook to my Existing Android app.
Thank you in Advance !