This report examines how lawmakers used social media in the months surrounding the 2016 and 2020 elections. To conduct this analysis, Pew Research Center collected every Facebook post and tweet created by every voting member of Congress between Sept. 8-Dec. 8, 2016, and Sept. 3-Dec. 3, 2020. The analysis includes official, campaign and personal accounts. The resulting dataset contains nearly 166,000 Facebook posts from 1,408 congressional Facebook accounts and more than 357,000 tweets from 1,438 congressional Twitter accounts. These steps are described in greater detail in the methodology.