邀请Facebook朋友使用我的iOS应用程序,该应用程序不是具有自定义UI的游戏 [英] Invite Facebook friends to my iOS app that is not a game with custom UI

查看:186
本文介绍了邀请Facebook朋友使用我的iOS应用程序,该应用程序不是具有自定义UI的游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以Rounds iOS应用程序的工作方式来邀请Facebook朋友(即在本机UI中显示Facebook朋友的列表,并且一旦用户点击发送邀请",我就会显示带有选择朋友的请求"对话框,并且用户只按发送以发送邀请).可以使用

I want to invite Facebook friends the way Rounds iOS app work (i.e. show the list of Facebook friends in native UI and once the user taps 'Send Invites', i show the Request Dialog with the select friends and the user only press send to send the invites). This can be done using

FBWebDialogs.presentRequestsDialogModallyWithSession(
        nil,
        message:"Message",
        title:nil,
        parameters:["app_id" : APP_ID, "to" : FRIENDS_IDs]) { 
            result, url, error in
            //Do whatever
    }

这里的问题是,我可以用来获取朋友ID的仅有两种方法是:

The problem here is that the only two ways i can use to get the friend ids is:

1-使用/me/invitable_friends发出图形请求,仅适用于游戏.

1- making a graph request using /me/invitable_friends which is avaiable only for games.

2-另一种方法是使用/me/friends,但它仅返回已授权您的应用的朋友,而不返回完整的朋友列表.

2- the other is to use /me/friends BUT it returns only the friends that have authorized your app not the complete list of friends.

我想做的事已经在另一个名为Rounds的应用程序中完成了,并且没有归类为游戏.

What i want to do is already done in another app called Rounds and also it is not categorized as game.

推荐答案

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

您应该使用iOS上的消息对话框"邀请朋友.无需为此获取整个朋友列表,用户只需在对话框中选择他的朋友即可.如果您的应用程序没有Canvas实现,并且您的应用程序不是游戏,则无论如何您都无法获得整个好友列表.当然也有taggable_friends,但是那只用于标记.

You are supposed to use the Message Dialog on iOS to invite friends. There is no need to get the whole friendlist for that, the user can just select his friends in the Dialog. You can´t get the whole friendlist anyway if your App does not have a Canvas implementation and if your App is not a game. Of course there´s also taggable_friends, but that one is for tagging only.

顺便说一句,其他可以运行此功能的应用程序很可能是旧的v1.0应用程序.在2015年4月之后,它将停止为他们工作.

Btw, those other Apps where this works are most likely old v1.0 Apps. It will stop working for them after April 2015.

这篇关于邀请Facebook朋友使用我的iOS应用程序,该应用程序不是具有自定义UI的游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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