简体   繁体   English

FB APP:允许Inf邀请使用fb用户的非应用

[英]FB APP: allow inapp invites to non app using fb users

I'm stuck with this 'big picture' problem: 我陷入了这个“大局”问题:

In a fb-integrated web app I'm making, users can create little groups consisting of a couple of friends. 在我正在制作的与fb集成的Web应用程序中,用户可以创建由几个朋友组成的小组。 They can invite a friend by sending a link (url). 他们可以通过发送链接(url)邀请朋友。

Users should be able to invite every friend they have. 用户应该能够邀请他们拥有的每个朋友。 In fact, there are 2 types of friends: 实际上,有两种类型的朋友:

  • The ones who also use the app 那些也使用该应用程序的人
  • The ones who don't use the app (yet) 尚未使用该应用的人(还)

I'm having a hard time figuring out a way to invite the latter ( the group of non-app using friends) 我很难找到一种方法来邀请后者(使用朋友的非应用程序组)

First of all, the fb graph api doesn't give acces to non-app using friends . 首先, fb graph api不会为使用friends的非应用程序提供访问权限 By labeling my app as a 'game', and by setting up the canvas, I can however get the 'invitable friends', ie the friends who don't play the game yet 通过将我的应用标记为“游戏”,并通过设置画布,我可以得到“邀请的朋友”,即尚未玩游戏的朋友

But a problem remains: I can't send a private message to an invitable friend, as I don't have their user id ( only a token to perform a game invite) 但是问题仍然存在:我无法将私人消息发送给受邀请的朋友,因为我没有他们的用户ID(只有令牌才能执行游戏邀请)

By sending a game invite , An invited user would simply be redirected to the fb canvas app , without entering the right group 通过发送游戏邀请 ,被邀请的用户将被简单地重定向到fb canvas应用 ,而无需输入正确的组

I could use the fb share dialogbox , but then users have select the friends using the fb dialogbox ui, which strongly interferes with my mobile app's flow. 我可以使用fb share对话框 ,但随后用户使用fb对话框ui选择了朋友,这极大地干扰了我的移动应用程序的流程。

I hope you're getting to understand my problem. 希望您能理解我的问题。 I'm interested in hearing your thoughts about this. 我很想听听您对此的想法。

Just recently I had the same issue with the Graph API. 最近,我在Graph API上遇到了同样的问题。 I also wanted to particularly address non-app using friends to invite them to my iOS app. 我还想特别针对使用非应用程序的朋友,邀请他们加入我的iOS应用程序。 It's not a canvas app, so I didn't have access to the invitable friend API and also found that this is not a trivial issue. 它不是画布应用程序,因此我没有访问邀请的好友API的权限,并且还发现这不是一个小问题。

anyway, if you're only interested in sending a message, i guess this is possible. 无论如何,如果您只对发送消息感兴趣,我想这是可能的。 this just wouldn't be an actual invite to the app, but rather really just a regular facebook message . 这实际上并不是对应用程序的实际邀请 ,而实际上只是常规的Facebook消息 do you need more info? 您需要更多信息吗?

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

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