private void RemoveAssociation(string name, long obj_id1, long obj_id2, bool isAsync, RemoveAssociationCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.removeAssociation" } }; Utilities.AddRequiredParameter(parameterList, "name", name); Utilities.AddRequiredParameter(parameterList, "obj_id1", obj_id1); Utilities.AddRequiredParameter(parameterList, "obj_id2", obj_id2); if (isAsync) { SendRequestAsync<data_removeAssociation_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state); return; } SendRequest(parameterList); }
/// <summary> /// Removes an association between two object identifiers. The order of these two identifiers matters, unless this is a symmetric two-way association. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="name">Name of the association. </param> /// <param name="obj_id1">Object identifier 1. </param> /// <param name="obj_id2">Object identifier 2. </param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> public void RemoveAssociationAsync(string name, long obj_id1, long obj_id2, RemoveAssociationCallback callback, Object state) { RemoveAssociation(name, obj_id1, obj_id2, true, callback, state); }