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

8k Views Asked by At

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.}
1

There are 1 best solutions below

1
VadymVL On BEST ANSWER

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.