Here's a basic code snippet to get started:
return ( <div> <input type="text" value=searchTerm onChange=handleSearch placeholder="Search for a Facebook profile" /> profileInfo && ( <div> <img src=profileInfo.picture.data.url alt=profileInfo.name /> <h2>profileInfo.name</h2> <p>profileInfo.bio</p> </div> ) </div> ); } facebook profile viewer
Go to Settings & Privacy > Privacy > This changes the audience of all your existing public posts to “Friends only.” Facebook Profile Viewer Here's a basic code snippet