![]() Twitter will use these tags to enhance the display of your page when shared on their platform. Twitter cards work in a similar way to Open Graph, except you add these special Meta tags only for Twitter. Here is a sample of how Open Graph tags look like in standard HTML: Open Graph Meta tags are designed to promote integration between Facebook, LinkedIn, Google and the website URLs that you shared on these platforms. Social Media Meta Tags (Open Graph and Twitter Cards) You can use the Sharing Debugger to see the information that is used when your website content is shared on Facebook, Messenger and other places.Facebook requires you to provide the unique ID and Twitter calls it their Twitter Card tool Both Facebook and Twitter have an analytics tool.Twitter twitter:image Add a unique not a generic image representing the content at least 280x150 pixels Facebook og:url The canonical URL for your page without session variables, user id parameters or counters Do not re-use the title as the description Facebook og:image The URL of the image, at least 600x315 pixels, preferable 1200圆30 pixels Twitter twitter:description A brief description of the tweet max. ![]() 70 characters Facebook og:description A short description of min. Twitter twitter:title A brief but comprehensive title of max. The size of the image file must not exceed 8 MB. Requirements The minimum allowed image dimension is 200 x 200 pixels. The full list of image properties can be found here. Facebook og:title The title, name or headline The og:image tag can be used to specify the URL of the image that appears when someone shares the content to Facebook. When a link is shared, Facebook and Twitter spider the page for specific tags to display the information. There is a whole list of items you can add but there are four that are actually required. If you would like to monitor your account usage and limits programmatically (how many concurrent requests you’re using, how many requests you’ve made, etc.) you may use the /account endpoint, which returns JSON.Key Points on how to add Social Media tagsįacebook and Twitter use the open graph protocol. When you log into your Scraper API account, you will be presented with a dashboard that will show you how many requests you have used, how many requests you have left for the month, and the number of failed requests (which do not count towards your request limit). I used this process for extracting Hacker News articles metatags. You can use them to extract any website with ease and without any hiccups. ScraperApi and metascraper.js have made our life super easy. ![]() You have now successfully scraped a website, and extracted respective metatags:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |