Can non-game app use FB apprequests dialog in FB v2

那年仲夏 提交于 2019-12-22 08:08:02

问题


In FB api v2.0+, can non-game app use apprequests https://developers.facebook.com/docs/games/requests/v2.2#implementation? I tested that our app which is categorized as shopping app seems to be able to use apprequests without problem when switching to FB v2.1, however on the link of https://developers.facebook.com/docs/games/requests/v2.2#implementation, it says "Requests are available for games on Canvas, iOS or Android.". Why my test shows apprequests api works for FB v2 for my shopping app, but the documentation says it only work for Game app?


回答1:


There is in fact a current hole in the Facebook API regarding web invites to non-game canvas apps. The Facebook API changelog from v 2.2 to v 2.3 states that the apprequests function that opens the Request Dialog is now only limited to games, and that non-game apps should use App Invites. However, App Invites work only in iOS and Android.

Trying to render the Request Dialog for a non-game app will fail with an error indicating it is available for game apps only. So currently, there is no way for users to invite friends to a non-game canvas app via the web, except by using the Send Dialog which is a lousy user experience and really shouldn't be used for that.

I have filed a bug report with Facebook and they have acknowledged it is a valid bug. Let's hope they fix it soon.

https://developers.facebook.com/bugs/895531977178531



来源:https://stackoverflow.com/questions/27949729/can-non-game-app-use-fb-apprequests-dialog-in-fb-v2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!