public
Description: A simple Facebook Platform API interface in Erlang.
Homepage: http://blog.socklabs.com/
Clone URL: git://github.com/ngerakines/erlang_facebook.git
name age message
file .gitignore Thu May 21 11:19:51 -0700 2009 Add the ebin/ directory to .gitignore so that b... [chrisk]
file Makefile Wed Sep 23 15:36:44 -0700 2009 Updating Makefile. [ngerakines]
file README.markdown Sat Dec 13 12:59:41 -0800 2008 Added more documentation. Updated version refer... [ngerakines]
file erlang_facebook.epm Tue Nov 24 00:19:50 -0800 2009 updating etap epm version. [Nick Gerakines]
directory src/ Thu Mar 26 08:31:03 -0700 2009 Updating build system to be more RPM friendly. [ngerakines]
directory support/ Thu Mar 26 08:31:03 -0700 2009 Updating build system to be more RPM friendly. [ngerakines]
README.markdown

erlang_facebook is a small, lightweight Facebook Platform API client library. It provides several utility functions for request verification and processing as well.

1> [ApiKey, Secret] = ["aassdd112233", "thisisasecret"].
["aassdd112233", "thisisasecret"].
2> erlang_facebook:custom(ApiKey, Secret, "facebook.users.hasAppPermission", [{"uid", "500025891"}, {"ext_perm", "offline_access"}]).
[true]

This library is developed and updated as needed. To request a feature or if you found a bug, please contact me through GitHub (account is ngerakines) or email me at nick+erlang_facebook@gerakines.net.

Supported Facebook API Methods

Facebook API methods map to module functions directly. The list of supported methods can be obtained by looking at the exported functions as per erlang_facebook:module_info/0.

To use a method that is not defined the erlang_facebook:custom/4 function can be used. When passing the function parameters be sure to include a method tuple naming the API method as well as any additional arguments that may be required.

Dependancies

This module requires MochiWeb, specifically the mochijson2 and mochiweb_util modules.

Acknowledgements

Thanks to Brian Fink (BeerRiot rocks!) for the well made erlang2facebook project. It inspired an entire world of Erlang development and inspired this module. Also, thanks to the MochiWeb guys for giving us developers to tools to create great software.