Facebook Android sdk Game Request Dialog shows "Game Requests are only available to games"

agustinaliagac picture agustinaliagac · Apr 1, 2015 · Viewed 7.9k times · Source

I'm updating my android app to the latest Facebook SDK (4.0.0). When I create a GameRequestDialog, it shows me this message: "Game Requests are only available to games", instead of showing my facebook friends. I was using WebDialog before in the older sdk and this didn't happen. I tried using WebDialog in sdk 4 but it still shows me this message.

UPDATE: here's the logcat output

{FacebookServiceException: httpResponseCode: -1, facebookErrorCode: 3405, facebookErrorType: null, message: Game Requests are only available to games.}

Answer

VadymVL picture VadymVL · Apr 1, 2015

You must set your Facebook app as a game category, in the App settings. Otherwise, you can't use GameRequestDialog, because your app is not a game. In this case, Facebook gives you AppInviteDialog.