mik dass
mik dass

Reputation: 381

Facebook App Invites not working

I have integrated the facebook sdk in my app.I have a listview with a onitemclicklistener.On press of a particular item at a particular position ,I trigger the facebbok appinvite code

String appLinkUrl, previewImageUrl;

                appLinkUrl = "//my app url here";
                previewImageUrl="//my preview image url here";

                if (AppInviteDialog.canShow()) {
                    AppInviteContent content = new AppInviteContent.Builder()
                            .setApplinkUrl(appLinkUrl)
                            .setPreviewImageUrl(previewImageUrl)
                            .build();
                    AppInviteDialog.show(MainActivity.this, content);
                }

But the invite is not working.A circle appears after sometimes and a screen flashes and disappears after some milliseconds and nothing happens .No invite dialog appears ,no friends selection and no invite is sent to anyone.

Upvotes: 1

Views: 1333

Answers (1)

mik dass
mik dass

Reputation: 381

To get the invite working you need to go to the app review status and make your app live to the public.

Upvotes: 2

Related Questions