private void DeleteObject(long obj_id, bool isAsync, DeleteObjectCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.deleteObject" } }; Utilities.AddRequiredParameter(parameterList, "obj_id", obj_id); if (isAsync) { SendRequestAsync<data_deleteObject_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state); return; } SendRequest(parameterList); }
/// <summary> /// Delete an object permanently. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="obj_id">Numeric identifier (fbid) of the object to delete. </param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> public void DeleteObjectAsync(long obj_id, DeleteObjectCallback callback, Object state) { DeleteObject(obj_id, true, callback, state); }