You don’t have to hit a like button. You just have to visit a site where a like button has been activated. It’s as if your local MacDonalds when you drive by takes your car license, phone data, and does facial scanning of all the car occupants.
My son’s google phone tracks location and routinely asks for pictures at places he visits.