2013-10-25 65 views
0

我已經集成了Facebook Unity SDK,登錄並能夠通過FB.AppRequest()發送請求。當我這樣做的時候,朋友選擇器對話框會按照預期彈出,我可以很好地解析在回調函數中邀請誰的結果。FB.AppRequest excludeIds似乎不起作用Unity/iOS

我一直在這裏的文檔在: 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 
} 

這些「碼排除的朋友在對話框中仍然顯示雖然。任何建議,我會出錯?

回答

1

根據您提交的標籤,我認爲您正在iOS上測試您的實施。正如「請求對話框」文檔中所述,excludeIdsfilters在手機上不起作用。此功能僅適用於Facebook site implementation

如果我們曾經支持Unity SDK的調用,我會再次發佈。

+0

嘿感謝信息 - 我一直在尋找的統一SDK這裏的文檔:https://developers.facebook.com/docs/unity/reference/current/FB.Apprequest/沒有提及的是,這些參數不適用於手機,因此我的困惑。如果你可以讓它在Unity SDK中工作,那將是超級棒的。再次感謝 ! – user2920169

+0

我剛更新了文檔。感謝您舉報! –

+1

「... excludeIds和過濾器在手機上不起作用。」我想知道這個功能是否有ETA? –