我们可以在 iOS 5 中通过 Facebook 邀请人们使用我们的应用程序或从应用程序发送好友请求吗? [英] Can we invite people to use our app or send friend request from the app via Facebook in iOS 5?

查看:24
本文介绍了我们可以在 iOS 5 中通过 Facebook 邀请人们使用我们的应用程序或从应用程序发送好友请求吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设 XYFacebook 的朋友,并且他们都在各自的手机中安装了应用.但在该应用的好友列表中,他们彼此不是好友.所以现在,可以从应用本身XY发送好友请求,以便他们成为好友在应用的好友列表中?

Consider X and Y are friends in Facebook and they both have installed an app in their respective phones. But they are not friends with each other in that app's friend list. So now, can X send a friend request to Y from the app itself, so that they could be friends on the app's friends list?

另外一种情况,X 已经在他的手机中安装了这个应用程序,而 Y 还没有.那么,X 邀请 Y 可以使用该应用程序吗?

Also in another case, X has installed this app in his phone, while Y has not. So again, can X invite Y to use that app?

它通过人们在 Facebook 注册的电子邮件 ID 来跟踪他们.所以,找朋友是为了搜索已经有应用用户",他们不在应用的朋友列表中,但在facebook上是朋友,邀请朋友是为了邀请非应用用户在 Facebook 上成为好友.

It tracks the people through the email id they have registered with in Facebook. So, find friends is for searching the "already app users", who are not in the app's friend list, but are friends in facebook and invite friends is for inviting the non-users of the app who are friends in Facebook.

我的问题是,这在 iOS5 中是否可行,即.不使用仅在 iOS6 中引入的 Facebook sdk?

My question is, is this possible in iOS5 ie. without using the Facebook sdk which was introduced only in iOS6?

推荐答案

使用 Facebook-sdk 3.1

当应用允许用户选择一个或多个朋友向其发送请求时,就会启动用户生成的请求.

User-generated requests are initiated when the app enables the user to select one or more friends to send a request to.

我们将引导您完成发送邀请或请求的步骤:

We will walk you through the steps to send out an invite or a request:

  • 在发送邀请或请求时触发
  • 发送请求
  • 随请求发送其他数据,例如虚拟礼物

您可以将您的应用设置为在用户使用该应用达到一定次数后提示用户发送邀请.您还应该让用户能够通过使用他们随时可以访问的菜单按钮随时邀请朋友使用该应用程序.在这一步中,我们将向您展示触发邀请请求的简单方法.

You can set up your app to prompt the user to send out an invite after the user has used the app a certain number of times. You should also give the user the ability to invite friends to use the app at any time through the use of a menu button they can always get to. In this step we will show you a simple way of triggering the invitation request.

参见 https://developers.facebook.com/docs/howtos/send-requests-using-ios-sdk/#protip2 用于不同类型的编码逻辑.

See https://developers.facebook.com/docs/howtos/send-requests-using-ios-sdk/#protip2 for different types of coding logic.

另见:

  1. 如何发送添加好友从 iOS 应用程序请求(向 Facebook 用户)?
  2. 是否可以发送 Facebook 好友请求来自我自己的应用程序?

这篇关于我们可以在 iOS 5 中通过 Facebook 邀请人们使用我们的应用程序或从应用程序发送好友请求吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆