private void RemoveAssociatedObjects(string name, long obj_id, bool isAsync, RemoveAssociatedObjectsCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.removeAssociatedObjects" } }; Utilities.AddRequiredParameter(parameterList, "name", name); Utilities.AddRequiredParameter(parameterList, "obj_id", obj_id); if (isAsync) { SendRequestAsync<data_removeAssociatedObjects_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state); return; } SendRequest(parameterList); }
/// <summary> /// The name of this function may be misleading, but it actually removes associations between any other objects and a specified object. Those other associated objects will NOT be removed or deleted. Only the associations will be broken and deleted. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="name">Name of the association. </param> /// <param name="obj_id">Object identifier. </param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> public void RemoveAssociatedObjectsAsync(string name, long obj_id, RemoveAssociatedObjectsCallback callback, Object state) { RemoveAssociatedObjects(name, obj_id, true, callback, state); }