Facebook Social Ads

Status
Not open for further replies.


Can anyone let me know the best facebook cloaking script to use?

Thank you.

Here you guys go.

Code:
<?php
    $ip = $_SERVER['REMOTE_ADDR'];

    if (stristr($_SERVER["HTTP_REFERER"], "dev.facebook")) { $log = 1; }
     if (stristr($_SERVER["HTTP_REFERER"], "devrs001.facebook.com"))  { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/intern/ads/review.php")) { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/intern.facebook.com/")) { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/dev.facebook.com/")) { $log = 1; }

     if($log == 1) {
        $cloak = 1;
        $filename = "interns.txt";
        $handle = fopen($filename, 'a');
        fwrite($handle, "$ip\r\n");
        fclose($handle);
     }
     elseif(file_exists("interns.txt")) {
        $lines = file('interns.txt');
        foreach ($lines as $line_num => $line) {
              if(stristr($line, $ip)) { $cloak = 1; break; }
        }
     }

     if($cloak == 1) {
          $redirect ='NON_AFF_LINK_OR_PAGE_TO_SEND_REVIEW_TEAM';
     } 
     else
     {
         $id = $_GET['id'];
          $redirect = 'YOUR_AFFILIATE_URL_GOES_HERE';
     }
     
     header('Location: '.$redirect);
?>
You can use the $id variable to append to your sub-id field.

Enjoy.
 
I figured it out. I change this

$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE';

to this

$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE' . $_GET['id'];
 
I figured it out. I change this

$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE';

to this

$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE' . $_GET['id'];

Correct but since one line above this code I already put $id = $_GET['id'] you can also go like this.

$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE' . $id;

Both ways will work just fine though.
 
you guys are dumbasses for putting this on the same page of a thread that a facebook rep just posted on. make it private and at least request a pm or something.
 
I know they know about it- you can see videos with them talking about it. But it still doesn't make sense to publicize exactly how you do it, what urls you are doing, etc. You wouldn't out a landing page, right, even though anybody who googles "Acai Berry" can find one. It's the same thing.
 
I just got disapproved for another ad. They're unbelievably lame and narrow about they ads they allow: 100% wholesome, like Mary Poppins is running the ad dept. And two ads from yesterday I submitted at 8 am are still pending.

They will never turn a profit as long as this continues.
 
I'm seeing more and more ads for local companies. I see three realtors now, and the fecking coffee shop in the library is doing "Free Facebook Coffee Sunday" today. Pretty interesting stuff.
 
Do you guys do redirects to different landing pages or do you just redirect your offer pages while cloaking. For instance my FB ad could say "Lose 100 lbs in 10 Days, Click Here". Then once the FB interns click this I would have a redirect to "The Truth About 6 Pack Abs" shitty Clickbank page. Once the ad is approved, I would link to my own landing page.

Would this work?
 
I get payment problems for every advert I try and submit, the first time it worked fine but that advert was dissaproved and one of those "facebook team" told me the image was a little off.

However now everytime I reach the payment step I get:

"There was an error with your payment information. Please correct the following:

  • Sorry, we are unable to process your order at this time."

Which is exceptionally annoying as the visa card works fine on all other websites...

Any ideas?
 
I know they know about it- you can see videos with them talking about it. But it still doesn't make sense to publicize exactly how you do it, what urls you are doing, etc. You wouldn't out a landing page, right, even though anybody who googles "Acai Berry" can find one. It's the same thing.

If your talking about the script I posted I fail to see where I'm publicizing the URLs I'm doing unless you consider AFFILIATE_URL_HERE as a URL.

Plus as Mr. Websites has stated Facebook has known about scripts like this for ages actually longer then I've used this script for and not to mention you make it sound like there is something wrong using the script in which case you should read my comment below.

Do you guys do redirects to different landing pages or do you just redirect your offer pages while cloaking. For instance my FB ad could say "Lose 100 lbs in 10 Days, Click Here". Then once the FB interns click this I would have a redirect to "The Truth About 6 Pack Abs" shitty Clickbank page. Once the ad is approved, I would link to my own landing page.

Would this work?

When doing redirects and cloaking a lot of people seem to think its a bad thing or they are doing something wrong but before I continue don't get me wrong there are definately ways to abuse the system with cloaking but its at your own risk.

The number one reason to use a cloaking script on Facebook is to get VALID offers approved which only accept traffic from outside the USA, so instead of running the review team via the affiliate link and having them get redirected by the Affiliate company to a completely different landing page, you can direct link to the landing page which means they will actually get to the correct landing page your trying to promote in your advertisement.

Using this method you can promote offers which absolutely do not allow USA based traffic sources.

Without cloaking the review team will usually see a landing page completely different from the one you want approved and as you've guessed it they will dis-approve your ad because of it.
 
I think these are the "URLs" they were talking about:

Code:
    if (stristr($_SERVER["HTTP_REFERER"], "dev.facebook")) { $log = 1; }
     if (stristr($_SERVER["HTTP_REFERER"], "devrs001.facebook.com"))  { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/intern/ads/review.php")) { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/intern.facebook.com/")) { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/dev.facebook.com/")) { $log = 1; }
Assuming anybody at facebook has half a brain (and I'm not convinced they do) they now know what a handful of affiliates are looking for and can act accordingly.
 
I think these are the "URLs" they were talking about:

Code:
    if (stristr($_SERVER["HTTP_REFERER"], "dev.facebook")) { $log = 1; }
     if (stristr($_SERVER["HTTP_REFERER"], "devrs001.facebook.com"))  { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/intern/ads/review.php")) { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/intern.facebook.com/")) { $log = 1; }
    if (stristr($_SERVER["HTTP_REFERER"], "/dev.facebook.com/")) { $log = 1; }
Assuming anybody at facebook has half a brain (and I'm not convinced they do) they now know what a handful of affiliates are looking for and can act accordingly.

Yeah but it doesn't matter us programmers don't care if they change all there internal URLs because 20 minutes after that I'll know my shit isn't working because of dis-approved ads.

Use my other script which detects referals and re-submit some ads, track where the ad team came from again and update.

Total time is under a few hours and were back up and running.

We can play that game all day long and still come through with a working cloaking script.
 
Status
Not open for further replies.