0

Facebook Unity SDK を統合し、ログオンして、FB.AppRequest() 経由でリクエストを送信できるようにしました。そうすると、フレンド セレクタ ダイアログが期待どおりにポップアップし、コールバック関数で誰が招待されたかの結果を適切に解析できます。

ここでドキュメントを読みました: https://developers.facebook.com/docs/unity/reference/current/FB.Apprequest/

SDK とここのサンプル コード: https://github.com/fbsamples/friendsmash-unity

しかし、ダイアログをポップアップするときに excludeIds フィールドを機能させることができないようです。

私が使用しているコードは次のとおりです。

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
}

ただし、これらの「除外された」友人は引き続きダイアログに表示されます。私が間違っている提案はありますか?

4

1 に答える 1