In 2011, Mr. Rodríguez Salas, a career politician and the Mayor of a small Spanish town called Jun, asked his town officials — from his deputy to the street sweeper — to open accounts on Twitter and send messages about their daily activities. The goal, he said, was to create greater accountability and transparency over how Jun was...