While it is rare for a standard traveler to have their private Facebook messages checked, immigration officers (such as those from U.S. CBP) have the legal authority to search electronic devices—including phones and laptops—at the border without a warrant. This authority is based on the "border search exception," which aims to prevent illegal activity and verify the intent of travelers. Officers may look at social media profiles and public posts to identify inconsistencies in a traveler's story (e.g., someone entering on a tourist visa who has messages discussing illegal employment). In 2025 and 2026, U.S. visa applications also require most applicants to disclose their social media "handles" for the past five years. While they don't "hack" private accounts, any information that is voluntarily provided or visible on a logged-in device presented to an officer is subject to review. If an officer suspects fraud or a security threat, they can and will examine messages to confirm the legitimacy of your visit.