In 2010, Pete Warden created a web application (basically a web scraper) to collect data from different Facebook profiles (Using Scraping Bots) which would show how different countries and regions would interact with each other.
Why to scrape data from Facebook?Here we are not talking about useless profile data, but data from the business pages on Facebook. The data from such pages can be used to keep an eye on the competition. For instance, If you run a Facebook page for your business then you might be interested to watch out for five other similar pages which have about same number of likes on them. Additionally, this data can be extremely useful for someone looking at lead generation through Facebook To make this possible, collecting data from different business pages and grouping it into different categories is very important. This simple idea itself can turn into a new Business Site which provides free and paid services to search useful business data available on Facebook.
A Subscription Based WordPress SiteThe idea is to create a WordPress based website which allows the user to search for their interest based Facebook pages. Roughly the user would be able to perform the following tasks:
Search for Facebook pages/groups that match a certain criteria then sort & filter on results.
Find Facebook pages similar to <given page/group>
Create a watch list (eg: watch competitors)
Create saved searches
Alert or Notify by email when certain values change (eg: likes for a page crosses X value)
All of it can be programmed using conditional statements. In addition to this search mechanism, the website can implement subscription based access. This way the owner can monetize by providing few features for free but advanced features only for premium members. The payments can be handled using Paypal. For this we need to integrate WordPress with Paypal using one of the existing Paypal Plugins.
Using the Facebook API for data extractionWe cannot take advantage of robots.txt of Facebook to crawl their data since its legally not permitted. Also this type of extraction route is probably fixed from their side and its not possible anymore to use this method. Therefore we need to turn to Facebook API for solution. We can use Facebook API to retrieve useful data from pages. Check out this link for different Facebook Graph API examples. Since we are interested in pages and groups, we can take advantage of these two Facebook API graphs –
As you can see, we are able to retrieve some useful data as listed below –
People Talking about the Page
Group Owner, etc.
Limitations on data to be extracted
There are certain limitations on the data extraction from Facebook. For instance, If you need to list down the total number of people who like a facebook page then that’s practically not possible using the Facebook API. But we might be able to list few of them using a technique which you can read on StackOverflow.
In the age of marketing automation and personalization, brands leave no stone untouched to market themselves on social media. A WordPress based application consisting of such a detailed API integration could be beneficial for brand marketers as well as businesses looking for targeted social lead generation.