Hello;
I’m developping an android game game in witch I connect to facebook . If the user is connected , he can invite 5 of his facebook friends to the application. I used this code. The problem that in the script InteractiveConsole.cs I want when the user click on button of invite , he can invite only 5 of his friends, when he choose 5 friends , he can’t invite more than 5. Here is my code:
#region FB.AppRequest() Friend Selector
public string FriendSelectorTitle = "";
public string FriendSelectorMessage = "Derp";
public string FriendSelectorFilters = "[\"all\",\"app_users\",\"app_non_users\"]";
public string FriendSelectorData = "{}";
public string FriendSelectorExcludeIds = "";
public string FriendSelectorMax = "";
private void CallAppRequestAsFriendSelector()
{
// If there's a Max Recipients specified, include it
int? maxRecipients = null;
if (FriendSelectorMax != "")
{
try
{
maxRecipients = Int32.Parse(FriendSelectorMax);
}
catch (Exception e)
{
status = e.Message;
}
}
// include the exclude ids
string[] excludeIds = (FriendSelectorExcludeIds == "") ? null : FriendSelectorExcludeIds.Split(',');
FB.AppRequest(
FriendSelectorMessage,
null,
FriendSelectorFilters,
excludeIds,
maxRecipients,
FriendSelectorData,
FriendSelectorTitle,
Callback
);
}
#endregion
Thanks for your help