Learning about the User in the Facebook Graph API. One disappointing thing I learned today is that you can’t automatically download the email addresses of your friends via a facebook app.
Category Archives: Internet
Raphaël—JavaScript Library
Learning about the Raphaël—JavaScript Library. This can be used to do animations and drawing in HTML documents.
Facebook App Development
I’m getting interested in Facebook App development and have found a few things to read:
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.