1. Money.
2. Work on interesting problems.
The rest will be commentary.
Someone will then analogize Meta/FB to $bad_company, and someone like me will then say, "When users stop using it, developers will stop working for them." Outside the NYT media bubble, normal everyday people love social media. I personally don't, for the same reasons someone is going to enumerate, but my preferences aren't universal.
As a FB software engineer you can probably work at any company you want to, so one must assume you want to work at Meta. And why is this?
Serious question here, please respond.