問題描述
假設(shè) X 和 Y 是 Facebook 中的朋友,并且他們都在各自的手機(jī)中安裝了應(yīng)用程序.但在該應(yīng)用的好友列表中,他們并不是彼此的好友.那么現(xiàn)在,可以X 從應(yīng)用本身向Y發(fā)送好友請求,這樣他們就可以成為好友了在應(yīng)用的好友列表中?
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 已經(jīng)在他的手機(jī)中安裝了這個應(yīng)用程序,而 Y 沒有.再說一遍,X 邀請 Y可以使用那個應(yīng)用嗎?
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 來跟蹤他們.所以,找朋友是為了搜索已經(jīng)應(yīng)用的用戶",他們不在應(yīng)用的好友列表中,但在facebook是好友,邀請好友是為了邀請在 Facebook 成為好友的非應(yīng)用用戶.
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
當(dāng)應(yīng)用允許用戶選擇一個或多個朋友來發(fā)送請求時,用戶生成的請求就會啟動.
User-generated requests are initiated when the app enables the user to select one or more friends to send a request to.
我們將引導(dǎo)您完成發(fā)送邀請或請求的步驟:
We will walk you through the steps to send out an invite or a request:
- 在發(fā)送邀請或請求時觸發(fā)
- 發(fā)送請求
- 隨請求發(fā)送其他數(shù)據(jù),例如虛擬禮物
您可以將您的應(yīng)用設(shè)置為在用戶使用該應(yīng)用一定次數(shù)后提示用戶發(fā)送邀請.您還應(yīng)該讓用戶能夠隨時通過使用他們可以隨時訪問的菜單按鈕來邀請朋友使用該應(yīng)用程序.在這一步中,我們將向您展示一種觸發(fā)邀請請求的簡單方法.
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.
另見:
- 如何發(fā)送添加好友來自 iOS 應(yīng)用程序的請求(向 facebook 用戶)?
- 可以發(fā)送facebook好友請求嗎來自我自己的應(yīng)用程序?
這篇關(guān)于我們可以邀請人們使用我們的應(yīng)用程序或通過 iOS 5 中的 Facebook 從應(yīng)用程序發(fā)送好友請求嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!