Learn about the best practices for implementing Facebook Sharing for your websites and mobile apps to build app experiences that people understand and trust.
Implement the Facebook Crawler to generate a preview of your publicly available Facebook content.
You must enable GZIP and/or deflate encoding on your web server to ensure that your website is shared correctly by our crawler.
Use Open Graph meta tags to ensure the Facebook Crawler scrapes useful information, such as title, description, and preview image, about your website when it is shared on Facebook.
Use the Sharing Debugger tool to test how your websites are viewed by our scraper. The debug tool also refreshes any scraped content we have for your websites, so it can be useful if you need to update them more often than the standard 24 hour update period.
FB.Event.subscribe reference guide to learn how to track these events.
Turn on Follow to allow your content creators to share public updates with their followers, while saving personal updates for friends only. For example, journalists can allow readers or viewers to follow their public content, like photos taken on location or links to published articles. Follow is a simple, effective way for your audience to connect with you and keep up with your content, without adding you as a friend.
og:image:heightOpen Graph tags to specify the image dimensions to the crawler so that it can render the image immediately without having to asynchronously download and process it.
Use App Links to link to a specific location in your app from Facebook to enable a seamless experience.
Use Message Dialog for private sharing. This allows people to share stories with content from your app in a more personal way to a more specific, limited audience using Facebook Messenger.
Track your app events with Facebook Events Manager.
Use the HTTP User-Agent Header to track mobile referral traffic to your website from Facebook on iOS or Android. This is especially common when people share links to your site to Newfeed and their contacts click on these links on mobile. Your app should:
HTTP User-Agentwith the value
FB_IAB/FB4Afor Android and