Does the library enable the service to be used on more platforms? Yes. Does the library enable spammers to abuse the service? Also yes. It's not an either/or situation.
A library is just a tool, like a hammer, you can build a shelf with it or hit your neighbor. anyway, you don`t solve that problem by banning hammers....