Search Unity

FB.AppRequest is doing nothing

Discussion in 'Scripting' started by binodlamagr, Jan 29, 2019.

  1. binodlamagr

    binodlamagr

    Joined:
    Aug 6, 2017
    Posts:
    1
    I have integrated Facebook SDK in my game, logging in and sharing works fine but when I try to send app request it shows my friends list and allows to send a message also but the person on other end doesn't get anything. No messages, no notification, no nothing. I am completely lost here trying to work things out. Any help is greatly appreciated.


    here is my code for app request

    Code (CSharp):
    1.  
    2. public void Invite()
    3.     {
    4.         if (FB.IsLoggedIn)
    5.         {
    6.             FB.AppRequest(
    7.             "I Just got " + game.GetScore().ToString() + " points! Can you beat it?",
    8.             null, null, null, null, null, null,
    9.             delegate (IAppRequestResult result) {
    10.                 Debug.Log(result.RawResult);
    11.             }
    12.         );
    13.         }
    14.     }
    The code works till here (Screenshot added below). But when I click send, it doesn't send anything to anyone.



     
  2. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,735
    It's been a while since I've done any Facebook stuff, but I do remember that a lot of the api calls will only work with test users until your app has passed the Facebook approval process.