Android Facebook invites not working properly
<p>I am using <strong>Simple Facebook</strong>.
Unfortunately I <strong>can't send invites with SimpleFacebook</strong> so I am using <strong>AppInviteDialog</strong> to invite friends.</p>

<pre><code> public void openDialogInvite(final Activity activity) {
    String AppURl = "my FB url...";  //Generated from //fb developers

    String previewImageUrl = "urlImage...";

    sCallbackManager = CallbackManager.Factory.create();

    if (AppInviteDialog.canShow()) {
        AppInviteContent content = new AppInviteContent.Builder()
                .setApplinkUrl(AppURl).setPreviewImageUrl(previewImageUrl)
                .build();

        AppInviteDialog appInviteDialog = new AppInviteDialog(activity);
        appInviteDialog.registerCallback(sCallbackManager,
                new FacebookCallback&lt;AppInviteDialog.Result&gt;() {

                    @Override
                    public void onSuccess(AppInviteDialog.Result result) {
                        Log.d("Invitation", "Invitation Sent Successfully");
                        System.out.println("test onSuccess");
                    }

                    @Override
                    public void onCancel() {
                        System.out.println("test  on cancel");

                    }

                    @Override
                    public void onError(FacebookException e) {
                        Log.d("Invitation", "Error Occured");
                        System.out.println("test Error"+e.getMessage());

                    }
                });

        appInviteDialog.show(content);
    }

}
</code></pre>

<p>The dialog open Facebook invite screens:
<a href="http://i.stack.imgur.com/bOH4A.png" rel="nofollow"></a></p>

<p><a href="http://i.stack.imgur.com/PUbwO.png" rel="nofollow">The invite progress bar look like everything is ok</a></p>

<p><strong>But</strong>, i get no response in the dialog callback.</p>

<p>i thought the problem was my AppLink because in the folowing code, appLink is always null:</p>

<pre><code> SimpleFacebook.initialize(this);


    Uri targetUrl = AppLinks.getTargetUrlFromInboundIntent(ProfileActivity.this, getIntent());
    if (targetUrl != null) {
        Log.i("Activity", "App Link Target URL: " + targetUrl.toString());
    } else {


        AppLinkData.fetchDeferredAppLinkData(
                this,
                new AppLinkData.CompletionHandler() {
                    @Override
                    public void onDeferredAppLinkDataFetched(AppLinkData appLinkData) {
                        //process applink data
                        Log.i("Activity", "App Link Target URL: " + appLinkData);

                    }
                });
    }
</code></pre>

<p>AppLink was always null, so i used "Quick Start for App Links Hosting API", and created the appLink manually and i send it in the dialog.</p>

<p>Why i don't get nothing on callback response? and Facebook users do not receive my invite?</p>