private void SetUserPreferences(List<string> values, bool replace, bool isAsync, SetUserPreferencesCallback callback, Object state)
        {
            var parameterList = new Dictionary<string, string> { { "method", "facebook.data.setUserPreferences" } };
            Utilities.AddJSONArray(parameterList, "values", values);
            Utilities.AddParameter(parameterList, "replace", replace);

            if (isAsync)
            {
                SendRequestAsync<data_setUserPreferences_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state);
                return;
            }

            SendRequest(parameterList);
        }
 /// <summary>
 /// Sets currently authenticated user's preferences in batch. Each preference is a string of maximum 128 characters and each of them has a numeric identifier ranged from 0 to 200. Therefore, every application can store up to 201 string values for each of its user. 
 /// </summary>
 /// <example>
 /// <code>
 /// 
 /// </code>
 /// </example>
 /// <param name="values">Id-value pairs of preferences to set. Each id is an integer between 0 and 200 inclusively. Each value is a string with maximum length of 128 characters. Use "0" or "" to remove a preference.</param>
 /// <param name="replace">True to replace all existing preferences of this user; false to merge into existing preferences.</param>
 /// <param name="callback">The AsyncCallback delegate</param>
 /// <param name="state">An object containing state information for this asynchronous request</param>        
 /// <remarks>To "remove" a preference, set it to 0 or empty string. Both "0" and "" are considered as "not present", and getPreference() call will not return them. To tell them from each other, one can use some serialization format. For example, "n:0" for zeros and "s:" for empty strings. </remarks>
 public void SetUserPreferencesAsync(List<string> values, bool replace, SetUserPreferencesCallback callback, Object state)
 {
     SetUserPreferences(values, replace, true, callback, state);
 }