Error: cannot invite friends using SDK for SDK for Unity

I was wondering if anyone could help me solve this problem. I am trying to use the FB.AppRequest () in the Facebook SDK for Unity to implement an invitation function. This is the code I'm using.

if(FB.IsLoggedIn)
{
    FB.AppRequest(
        message: "Let eat and be prosperous!",
        title: "Let eat and be prosperous!",
        callback: InviteCallback
    );
}

// ... 

void InviteCallback(FBResult response)
{
    // print response to console
}

The invitation dialog that I get can be seen here (link to Imgur). There is no “Invite” label on these buttons, and it is not surprising that clicking on them does not send any invitations. However, I can see the FBResult data, which is in the following format:

{
    "request": "ABCD",   
    "to": 
    [
        "EFGH",      
        "IJKL"
    ]
}

(more or less since I did not find a way to print new lines in the Firebug console)

Additional Information:

  • The result will be the same regardless of Sandbox settings.
  • Unity version is 4.3.0f4
  • Android SDK Unity - 4.3.4
  • .
  • Friend Smash, , . , Friend Smash (11/11/2013), Facebook .
  • Facebook (, Init, Feed, API) .

. , , Facebook SDK Unity, , .

!

+4
1

: , , .

, . https://www.facebook.com/appcenter/requests , .

, fbresult? unity-sdk@fb.com. !

+3

All Articles