Facebook And Twitter Card Viewer - PHP ScriptFacebook And Twitter Card Viewer - PHP Script
A PHP Script to fetch meta tags from any URL + Card ViewerFacebook And Twitter Card Viewer - PHP Script
A PHP Script to fetch meta tags from any URL + Card ViewerOverview
Introduction
Facebook & Twitter Card Viewer is a PHP script that fetches meta data from any URL and previews a card in the browser.
Crawler
This script includes a rich crawler written in PHP. It crawls and get card-related meta data from any URL. It can even find endpoints of short URLs and get the data from the last URL. Also, the crawler is well-commented and can be easily modified to do more complicated tasks.
Card Preview
The preview is approximate. I have tried my best to recreate the view. But, with new updates of Facebook and Twitter this cards may vary. Currently, following types are supported
* Normal Facebook cards
* Twitter summary cards
* Twitter summary_large_image cards
For what?
- Learn: You can learn some things about crawling, fetching, handling redirects, cURL,
- Earn Money: You can host this script in your website and you can earn by showing ads in this page. Just signup to a advertising site (Ex: Adsense) then place your ad code at the bottom.
- For Debugging: You can use this script to debug your web pages, find if the card views are working fine. And, to check the meta tags.
FAQ
Can I use this for commercial purposes? Yes. Make sure you buy the extended license.
Can I easily customize this script? Of course, that's what I have designed this for.
Can I earn money from hosting this? Yes, there are many websites do the same thing.
Do I get support after buying this? Yes, I like to help my customers any time.
Features
- Well-commented PHP Script
- Built on an OOP model
- Javascript is also commented when it comes to tricky things
- Built on bootstrap and jquery
- Crawler supports 301, 302 redirects
- Fast fetcher
- Card Previews
- Meta tags previews
- Supports facebook cards, twitter summary and summary_large_image cards
- Supported in all the modern browsers
Requirements
- PHP 5.3+
- cURL extension
Instructions
- Host the script in a PHP supported host
- Make sure cURL is enabled
- Yay! it should work very well. If not, I'm here to help you.
Other items by this author
Category | Scripts & Code / PHP Scripts / Social Networking |
First release | 6 April 2019 |
Last update | 6 April 2019 |
Software version | PHP 7.0, PHP 7.1, PHP 7.2, PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6 |
Files included | .php, .css, Javascript .js |
Tags | php, facebook, twitter, scraper, crawler |