When a noun is accusative and male then it will have den you is the nominative pronoun because you are committing an action. You are liking something. The apple is being liked. You are the subject and the apple is the object. The apple is also masculine so you change der to den