FB.AppRequest excludeIds似乎不工作Unity / iOS [英] FB.AppRequest excludeIds doesn't appear to work Unity / iOS

查看:489
本文介绍了FB.AppRequest excludeIds似乎不工作Unity / iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Facebook Unity SDK集成,登录并能够通过FB.AppRequest()发送请求。当我这样做时,朋友选择器对话框按预期弹出,我可以很好地解析被邀请在回调函数中的结果。

I have the Facebook Unity SDK integrated, logging on, and able to send requests via FB.AppRequest(). When I do so the friend selector dialog pops up as expected and I can parse the results of who was invited in the callback function nicely.

我已经完成了文档这里:
https://developers.facebook.com/ docs / unity / reference / current / FB.Apprequest /

I've been over the documentation here: https://developers.facebook.com/docs/unity/reference/current/FB.Apprequest/

SDK中的示例代码和这里:
https://github.com/fbsamples/friendsmash-unity

And the sample code in the SDK and here: https://github.com/fbsamples/friendsmash-unity

但是,当弹出对话框时,我似乎无法使excludeIds字段工作。

but I can't seem to get the excludeIds field to work when popping the dialog up.

这里是我使用的代码:

string excludeID1 = "123456789"; // Obviously I'm using real FB friend ids (non-dev accounts)
string excludeID2 = "987654321";
string[] excludeIDs = { excludeID1, excludeID2 };

FB.AppRequest(
    message: "This game is amazing! Check it out.",
    title: "Play this game with me!",
    excludeIds: excludeIDs,
    callback: AppRequestCallback
);

void AppRequestCallback( FBResult response )
{
    // Everything fine here, can parse selected/invited friend IDs, no errors reported
}

这些排除的朋友仍然显示在对话框中。任何建议,我会出错?

These 'excluded' friends still show up in the dialog though. Any suggestions where I'm going wrong?

推荐答案

根据你提交的标签,在我看来,你正在测试你在iOS上的实现如请求对话文档中所述, excludeIds 过滤器在移动设备上无效。此功能仅适用于 Facebook网站实施

Based on the tags that you submitted it seems to me that you're testing your implementation on iOS. As mentioned on the Request Dialog documentation, the excludeIds and filters don't work on mobile yet. This feature is only available for the Facebook site implementation.

如果我们支持Unity SDK的这个电话,我将再次发布。

I'll post again if we ever support this call for the Unity SDK.

这篇关于FB.AppRequest excludeIds似乎不工作Unity / iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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