- Home /
App Invite not showing notification to friends in facebook
I have integrated the facebook sdk in my android unity project and also created facebook app and configured it according to the facebook docs but still after sending app invite to a friend no invite is received.
Answer by game_coder7 · Sep 18, 2016 at 02:04 PM
Answering my own question I had forgotten to make my facebook app live or public therefore it was not working
Hi Game_coder7, Did you use FB.AppRequest or FB.$$anonymous$$obile.AppInvite?
Answer by power2k · Nov 22, 2016 at 08:48 PM
I'm having the same issue. My app is LIVE and PUBLIC on facebook, however, still no invitation seems to be sent out.
My code is: public void InviteFriends() { StartCoroutine(InviteFriendsRoutine()); }
IEnumerator InviteFriendsRoutine() {
if (!IsLoggined()) {
Question.main.Ask(
LocalizationAssistant.main["question_invite_text"],
LocalizationAssistant.main["signin"],
LocalizationAssistant.main["cancel"]
);
while (Question.main.Wait())
yield return 0;
switch (Question.main.GetResult()) {
case 0: // Sign in
yield return StartCoroutine(Connection(true));
break;
case 1: // Cancel
yield break;
}
}
if (IsLoggined()) {
FB.AppRequest(
message: LocalizationAssistant.main["invite_text"],
title: LocalizationAssistant.main["invite_title"]
);
}
}
Do I miss sth here? Thanks.
Your answer
Follow this Question
Related Questions
Facebook SDK v7.2 login not working when on android 2 Answers
Vungle Android Plugin? 1 Answer
Can't build for Android 0 Answers
Turning off SSO on Facebook's Unity SDK for Android 0 Answers
Open SSL not found 10 Answers