I’m getting interested in Facebook App development and have found a few things to read:
Category Archives: Internet
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:
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID &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:
https://www.facebook.com/add.php?api_key=YOUR_APP_ID&pages
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 geoip.inc PHP file you’re good to go. E.g.:
require_once __DIR__ . '/geoip/geoip.inc';
$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 );
Apache2 NameVirtualHost Directive
Needed to use the Apache2 NameVirtualHost directive to enable virtual hosts on an IP address for one of my servers. Not entirely sure where the best place to put this configuration directive was I elected to put it in /etc/apache2/httpd.conf — which was empty before hand.
favicon.ico generator
When I need a favicon.ico for my site I use the favicon.cc generator.
HTML meta refresh
Used good old meta refresh for a project today. :)
CSS3 opacity Property
Used the CSS3 opacity Property for the first time today!
Preloaders
Preloaders is a loading/spinning GIF/PNG generator for your AJAX web page.
How to build online communities
A lot of reading for me to do about how to build online communities!
Resizing images with PHP
Read an article today about Resizing images with PHP which has a follow up about Retaining Transparency with PHP Image Resizing.
I haven’t had to do this yet, but I see it in my future. :)