I got asked to write a book by Packt as a lead author with two years experience in a junior position. This was a (badly) paid role of like 800 GBP or something. Take from that what you will...
I'm not really in social media at all, so I take the approach as a cold-call for writing a book, which seems like a red flag to me.