As you probably already know old Facebook cloaking method not always work. They start testing new method without the traditional intern referral URL. So I’ve created clocking script + service to track reviewer’s IP addresses and share between users.
How it works:
You install script on your server, configure it and when Facebook intern come to review your ad from the traditional referral URL, script will send IP address, referral URL and user agent to tracking server. We will provide a daily updates of IP text file with fresh IP addresses. So your script always be up to date. More users use this script/service the more IP we will collect.
Installation and Configuration
1. Download Facebook Cloaking Script with Daily Updated IP Database.
2. Unpack the files to any folder on your web server. Make sure this line is in your php.ini file: allow_url_fopen = On
3. Edit the configuration file fbcloaking-config.php. You will see 2 PHP arrays $offers and $cloaked. $offers array for your non-cloaked URLs and $cloaked for cloaked links:). For same offer you have to use identical array keys in both arrays.
Example:
$offers = array( 'offer-id1' => "http://trk.com/dl.php?t202id=123&t202kw=" . $_GET['ad'], 'offer-id2' => "http://trk.com/dl.php?t202id=456&t202kw=" . $_GET['ad'], 'offer-id3' => "http://anotheroffer.com/", ); $cloaked = array( 'offer-id1' => 'http://apps.facebook.com/visabusiness/', 'offer-id2' => 'http://www.disney.com/', 'offer-id3' => 'http://affiliateplex.com/', );
As you can see you can pass through any query string parameters further to your tracking software.
Here is example how to configure cloaking script with prosper202/tracking202:
The best way to split testing your ads with prosper202/tracking202 and Facebook is using single destination URL and t202kw parameter.
For example you have created few ads with following URLs pointing to your cloaking script:
http://yourdomain.com/redirect.php?oid=offer1&ad=ad1
http://yourdomain.com/redirect.php?oid=offer1&ad=ad2
http://yourdomain.com/redirect.php?oid=offer2&ad=ad1
http://yourdomain.com/redirect.php?oid=offer3&ad=ad1
Then your configuration file should look something like this:
$offers = array( 'offer1' => "http://trk.com/dl.php?t202id=123&t202kw=" . $_GET['ad'], 'offer2' => "http://trk.com/dl.php?t202id=456&t202kw=" . $_GET['ad'], 'offer3' => "http://trk.com/dl.php?t202id=789&t202kw=" . $_GET['ad'], ); $cloaked = array( 'offer1' => 'http://apps.facebook.com/visabusiness/', 'offer2' => 'http://www.disney.com/', 'offer3' => 'http://affiliateplex.com/', );
If you don’t use tracking software you can just put offer or landing page URL into $offers array.
4. Daily update IP text file fbcloaking.txt from here.
Tags: cloaking, Facebook
Yeah this pretty sweet! Just so you all know I’m going to be releasing a free facebook account creator soon. Will be adding this to my bag of goodies.
Thanks!