My facebook invite button isn't working. Here is the code
public void Invite() {
FB.Mobile.AppInvite (new System.Uri ("app link"), null, InviteCallback);
}
void InviteCallback(IAppInviteResult result) {
if (result.Cancelled)
{ Debug.Log ("Invite cancelled. "); }
else if (!string.IsNullOrEmpty (result.Error))
{ Debug.Log ("Error in invite: " + result.Error); }
else { Debug.Log ("Invite was successful: " + result.RawResult); }
}
The results show
"Invite was successful: {did_complete":true,"callback_id":"3"} UnityEngine.Debug:Log(Object)"`
So I know it got sent, but when I asked my friend to check their Facebook account, they said they didn't receive anything from me. Does anyone know what to do to fix this or why it isn't showing up in my friends Facebook notifications when I sent it?