Adding an app/page to a Facebook Page

I found this article which said to add a page/app to a Facebook Page you need to hit this URL with your two parameters: &display=popup&next=YOUR_URL

Update: I was trying to add an ‘app’ rather than a ‘page tab’ and it turned out I needed this: 

GeoIP with MaxMind’s GeoLite in PHP

You can download the GeoLite Country database from GeoLite Free Downloadable Databases and you can grab the MaxMind GeoIP PHP API.

Once you have the GeoIP.dat file and the PHP file you’re good to go. E.g.:

  require_once __DIR__ . '/geoip/';

  $gi = geoip_open( __DIR__ . '/geoip/GeoIP.dat", GEOIP_STANDARD );

  $country_code = geoip_country_code_by_addr( $gi, $host );
  $country_name = geoip_country_name_by_addr( $gi, $host );

  geoip_close( $gi );