Have you tried the buy back at your schools bookstore and either aren't being offered enough or employees won't take it, due to them being out of date or being too used? Are you an early graduate and don't want to pack up those old books and really don't care what happens to them? Or are you tired of an old textbook taking up space and frankly you don't wish to deal with it anymore?
Here's a solution! Donate it; ask your professor, if they could use it for their next class, or know if any of their colleagues need it. Offer it to your school's library or to a public library, then many students will be able to use it for years to come.
Wouldn't it be better to give the book away rather than throw it in the trash? While you may be very tempted to do so, especially if it was a class you don't particularly wish to remember, it would be easier and less of a hassle to give it to a professor on the last day rather than walk all the way to the dumpsters and toss away money.
Some schools may have an official Facebook page designated just to selling textbooks. Post it online, give it some time, if it doesn't work, offer it to be donated to the first person who comments to it.
You will feel a lot better about donating it rather than throwing it away.