简体   繁体   English

Facebook Unity SDK:是否可以向非应用程序用户发送好友邀请/应用程序请求?

[英]Facebook unity sdk: is it possible to send friend invites/app requests to non app users?

I'm working with the official facebook sdk and example scene for unity and am sending app requests using : FB.AppRequest() which returns a list of friends to send invites to. 我正在使用官方的Facebook sdk和统一示例场景,并使用FB.AppRequest()发送应用程序请求,该请求返回要向其发送邀请的朋友列表。

However no matter what I try, I only get a list of friends associated with the app and cannot see any other friends who haven't played the app. 但是,无论我尝试什么,我都只会得到与该应用程序关联的朋友列表,而看不到其他尚未玩过该应用程序的朋友。

I have even tried setting the 'app_non_user' filter, but this makes no difference. 我什至尝试设置'app_non_user'过滤器,但这没什么区别。

I have read on the Invitable_Friends api, but am not sure how this would be implemented in the unity sdk. 我已经阅读了Invitable_Friends api,但不确定如何在统一sdk中实现。

Any advice would be much appreciated. 任何建议将不胜感激。 Thanks 谢谢

Your app must be approved by Facebook to get people's friends lists beyond people using the app. 您的应用必须获得Facebook的批准,才能获得使用该应用的用户之外的其他人的好友列表。 Look in the developers.facebook.com section to find how to do this. 查看developers.facebook.com部分中的操作方法。 I haven't done this, but a game I worked on needed to do this. 我还没有做到这一点,但是我从事的游戏需要做到这一点。

Getting approved involves sending your app and it goes through an approval process. 获得批准涉及发送您的应用程序,并且它会通过批准过程。

Here's the relevant bit: 这是相关的位:

https://developers.facebook.com/docs/apps/faq#invite_to_app https://developers.facebook.com/docs/apps/faq#invite_to_app

"If your app is a game and has a presence on Facebook Canvas: “如果您的应用程序是一款游戏,并且在Facebook Canvas上有业务存在:

You can use the requests Dialog and set filters=app_non_users to filter the dialog to only show people who don't use the app." 您可以使用请求对话框并设置filter = app_non_users来过滤对话框,以仅显示不使用该应用的用户。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM