private void SetAssociations(IList<DataAssociation> assocs, string name, bool isAsync, SetAssociationsCallback callback, Object state)
        {
            var parameterList = new Dictionary<string, string> { { "method", "facebook.data.setAssociations" } };
            Utilities.AddRequiredParameter(parameterList, "assocs", assocs);
            //Utilities.AddRequiredParameter(parameterList, "associations", assocs);
            Utilities.AddRequiredParameter(parameterList, "name", name);

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

            SendRequest(parameterList);
        }
 /// <summary>
 /// Creates a list of associations. 
 /// </summary>
 /// <example>
 /// <code>
 /// 
 /// </code>
 /// </example>
 /// <param name="assocs">A list of associations to set. Each of them has:
 /// * name: string, optional - name of the association to set;
 /// * id1: int64, object identifier 1;
 /// * id2: int64, object identifier 2;
 /// * data: string, optional - an arbitrary data (max. 255 characters) to store with this association.
 /// * time: integer, optional - default to association creation time. A timestamp to store with this association. This timestamp is represented as number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). </param>
 /// <param name="name">Optional - default association name if association name is not specified in the list. </param>
 /// <param name="callback">The AsyncCallback delegate</param>
 /// <param name="state">An object containing state information for this asynchronous request</param>        
 public void SetAssociationsAsync(IList<DataAssociation> assocs, string name, SetAssociationsCallback callback, Object state)
 {
     SetAssociations(assocs, name, true, callback, state);
 }