2

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.}
agustinaliagac
  • 829
  • 10
  • 24
  • 2
    _Is_ your app in the Games category and does it have a working canvas implementation? Otherwise, you are not allowed to use invite requests. Alternatives are listed here: https://developers.facebook.com/docs/apps/faq#invite_to_app – CBroe Apr 01 '15 at 15:30

1 Answers1

6

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.

VadymVL
  • 5,366
  • 3
  • 26
  • 41
  • +1 even though my app is a web app, but this answers helped me a lot after hours of digging. the app-invites dialog keep opening and closing without any useful info. when i try in chrome i got the error log , thank you – wpcoder Oct 19 '17 at 00:29