問題描述
假設 X 和 Y 是 Facebook 中的朋友,并且他們都在各自的手機中安裝了應用程序.但在該應用的好友列表中,他們并不是彼此的好友.那么現在,可以X 從應用本身向Y發送好友請求,這樣他們就可以成為好友了在應用的好友列表中?
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.
另見:
- 如何發送添加好友來自 iOS 應用程序的請求(向 facebook 用戶)?
- 可以發送facebook好友請求嗎來自我自己的應用程序?
這篇關于我們可以邀請人們使用我們的應用程序或通過 iOS 5 中的 Facebook 從應用程序發送好友請求嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!