in Facebook.Unity/FacebookBase.cs [209:240]
protected void ValidateAppRequestArgs(
string message,
OGActionType? actionType,
string objectId,
IEnumerable<string> to = null,
IEnumerable<object> filters = null,
IEnumerable<string> excludeIds = null,
int? maxRecipients = null,
string data = "",
string title = "",
FacebookDelegate<IAppRequestResult> callback = null)
{
if (string.IsNullOrEmpty(message))
{
throw new ArgumentNullException("message", "message cannot be null or empty!");
}
if (!string.IsNullOrEmpty(objectId) && !(actionType == OGActionType.ASKFOR || actionType == OGActionType.SEND))
{
throw new ArgumentNullException("objectId", "objectId must be set if and only if action type is SEND or ASKFOR");
}
if (actionType == null && !string.IsNullOrEmpty(objectId))
{
throw new ArgumentNullException("actionType", "actionType must be specified if objectId is provided");
}
if (to != null && to.Any(toWhom => string.IsNullOrEmpty(toWhom)))
{
throw new ArgumentNullException("to", "'to' cannot contain any null or empty strings");
}
}