Context matters:
Taking a group photo? Stock photo models? PR? Greeter? - yes, asking someone to smile for a goal is fine
Someone just minding their own business - no, asking them to smile is selfish and just for your personal satisfaction. People don't need to justify to you why they don't feel like smiling. It's rude to demand it of others
This isn't consent, it's pestering and in a relationship would be abusive