Making a Cog accept your friend request in Toontown isn't actually possible through normal gameplay—Cogs are enemies, not friends, so there's no legitimate way to add one.
The so-called method that circulates online, involving defeating certain Cogs in a specific order and then repeatedly asking a Sellbot to be your friend until it "says yes," is just a rumor. The best way to make friends in Toontown is with real players you meet during your adventures.