1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirecting Facebook Ads

Discussion in 'FaceBook' started by japple, Jan 31, 2012.

  1. japple

    japple Newbie

    Joined:
    Jan 30, 2012
    Messages:
    1
    Likes Received:
    0
    I guess ill 301
     
    Last edited: Feb 1, 2012
  2. microbe

    microbe Registered Member

    Joined:
    Jan 25, 2012
    Messages:
    61
    Likes Received:
    24
    Occupation:
    I sit behind a computer screen and move my hands..
    Location:
    US
    Yes, this is doable. You can two it two ways, you can either wait until the devs have reviewed your ad and approved it then redirect it to your offer that facebook isn't approving.

    Or just run this cloaking script.

    PHP:
    <?php
      $cloaked_url 
    "URL"// devs go here
      
    $normal_url "URL";  // everyone else goes here

      
    $tracking_ref $_SERVER['HTTP_REFERER'];

      if(
    strpos($tracking_ref,"dev.facebook")){
        
    Header"HTTP/1.1 301 Moved Permanently" );
        
    Header"Location: " $cloaked_url );
      } else {
        
    Header"HTTP/1.1 301 Moved Permanently" );
        
    Header"Location: " $normal_url );
      }
    ?>
    (remove any white space outside of the PHP tags to avoid errors)
     
    • Thanks Thanks x 1