public static async Task <bool> HasPermissions(this FacebookClient client, params string[] permissions) { var current = await client.GetCurrentUserPermissionsAsync(); foreach (var s in permissions) { if (!current.Contains(s)) { return(false); } } return(true); }