Facebook Social Ads Command Center

Posted on: June 14th, 2008 by Nick

Hmmm…command center may be a little overblown, but groneg from #cakes asked to take a peek at how I setup my Facebook campaigns server side so I figured Id just post a shell of the script that I send all of my ads through. This requires that you have DNS wildcards setup so that you can do cool stuff like true.domain.com, singlesnet.distracts.net, etc, but you can also modify it to accept parameters to index if you’d prefer that (comment if interested and Ill help ya out).

Some things to pay attention to:
if ($cloak) $offer = : This is the page to send a Facebook intern to … useful for getting your porn ads through.
$redirect : Set this to 1 in your case statement if you want to scrub out your referrer. This technique is covered in Scrubbing Your Traffic with Meta Redirects.
$iframe : If you want the offer to be iframed for whatever reason, set this to 1.
$landing : Set this to 1 for a VERY simple landing page. My Facebook lps are a single image with a link and title. Look at the third if case for the flags to set.

Anyways, here’s my code … feel free to post any questions you have in the comments and Ill do my best to answer.

Facebook Command Center - PHP CODE

No Responses to “Facebook Social Ads Command Center”

  1. Neil Says:

    Hey nick,

    I’m having trouble getting the script to locate the subdomains. Right now I’m uploading it to the main directory of each subdomain which pretty much defeats the entire purposes of using this code. If you don’t mind can you go over DNS wildcards setup or setting up parameters to index.php

Leave a Reply