Installing Facebook Open Platform on Fedora 8

This is a step by step I wrote ages ago whilst installing Facebook Open Platform on Fedora 8. I did the FBOP working in the end, although found little to no use for it - there were parts missing (mainly the fbml form parser) so I couldn’t get it set up to create a local facebook testing environment, which is what I wanted to do. I haven’t developed a Facebook App for a while, so I’m not sure if they’ve made any ground releasing a more complete version of the open platform.

This is exactly what I’ve done to get Facebook Open Platform running on Fedora 8, running in VMWare on a Vista Machine - Install Fedora 8 using VMWare - Setup a new vhost - The ServerName I’ve given is ‘fbop’ - Create a ‘Hello, World!’ index page - Add an entry to my host OS’s hosts file, pointing fbop to my vhost. – all works fine - yum install php-devel - Checkout the fb open platform from - Download all dependencies for Firefox and libfbml - ./ - atk failed. - export PKG_CONFIG_PATH=/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig - comment out pkgconfig and glib from packages in so they won’t be installed again - ./ - cairo failed. - vim dependencies/cairo-1.2.6/src/cairo-type1-subset.c add ‘#include ‘ right after ‘#include FT_TYPE1_TABLES_H’ - comment out all dependencies up to and including cairo - We need to make install this manaully (i.e. without the script as it will unpack cairo again and write over our changes)

  • cd dependencies/cairo-1.2.6
  • ./configure; make; sudo make install;
  • cd ../..
  • ./
  • so close! …xrender failed.
  • o However, Fedora 8 alreaedy has libXrender 0.9.4 installed, and everything seems to work OK with this…
  • coment xrender from packages in
  • ./
  • Fails after a little while…
  • cd dependencies/mozilla
  • sed -i “s@EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS)@& -L/usr/lib -lXrender -lX11@” layout/build/
  • cd ../..
  • comment out result = system(“tar …
  • ./ … failed
  • edit src/fbml.cpp to not use goto.
  • o it’s only two places, so being lazy I just copied and pasted the code at label exit to where the gotos were.
  • ./ … failed
  • edit src/js/jsbit.h:173 and replace the second ‘long’ in sizeof
  • ./ … COMPLETE! hazzah!
  • add to /etc/php.ini
  • service httpd restart

There! Facebook Open Platform should be installed…

I’m not sure if anyone will actually use this - just thought I’d share how I got it working on Fedora 8.

If anyone’s interested in me putting up here how I got the canvas working properly so I can completely test the Facebook App locally, send me an email and I might put something together. Edit: This never happened - the platform was too incomplete to get anything going.

Have fun!

comments powered by Disqus