Now you can add a Facebook “Like” button to any webpage, so I quickly created a plugin to add that to WordPress, it will take a day or 2 to publish to the official plugins site, but in the meantime you can grab it at GitHub. If you don’t have Git, then you can download a zipfile of it.
Sociable released a WordPress plugin to link up WordPress blogs to Facebook with Facbeook Connect. I just installed it, took about 5 minutes, and it works great. It allows you to link your FB account to this blog, so you can post comments with your FB identity. Your comments are automatically approved if you posted with fbconnect. You also get to use the familiar fb:multi-friend-selector to invite friends to this blog.
There is however one problem on this approach, since the default passenger.pref config relies on virtual host, you can’t really setup SSH port forward to forward something to one of the virtual hosts, and this is important as this is how most of us develop Facebook applications locally. To get Passenger and Rails Facebook apps to work, you have to:
- open up httpd.conf ask Apache to listen to another port:
- add another named virtual host, here I’m adding port *.81:
<IfModule passenger_module> NameVirtualHost *:80 NameVirtualHost *:81 Include /private/etc/apache2/passenger_pane_vhosts/*.conf </IfModule>
- In the configuration for that Facebook app, change it to respond to all traffic on the new port (81 in this case):
<VirtualHost *:81> ServerName app_name.local DocumentRoot "/Users/ayn/work/app_name/public" RailsEnv development RailsAllowModRewrite off <directory "/Users/ayn/work/app_name/public"> Order allow,deny Allow from all </directory> </VirtualHost>
Now you can setup your tunnel to forward to localhost (or 127.0.0.1 if you use SSHKeychain) port 81 and it should work. Add more ports if you work on multiple Facebook apps at the same time.
Facebook IM never worked right for me in Adium, I just built the latest from Subversion and now it’s working flawlessly, it’s really easy to build from their latest if you have Xcode installed. To save you some time I’ve uploaded my adium.app to MediaFire:
Updated 6/20/08: http://www.mediafire.com/?i3tngvzvtng
When I wrote my last app at OnMyList I had to roll my own autocomplete/typeahead feature with FBJS, I was looking at Preload FQL and found out last Dec they added a beta Typeahead tag, I tried it out with the FBML test console and it works great.
It’s def worthwhile to check out their beta features.
oh btw, this Typeahead is static, which means there is no way to ask it to do an ajax call to get results dynamically. I’m sure they’ll have an Ajax-Typeahead at some point…