Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngerakines/erlang_facebook
A simple Facebook Platform API interface in Erlang.
https://github.com/ngerakines/erlang_facebook
Last synced: about 1 month ago
JSON representation
A simple Facebook Platform API interface in Erlang.
- Host: GitHub
- URL: https://github.com/ngerakines/erlang_facebook
- Owner: ngerakines
- Created: 2008-08-10T16:30:40.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2011-02-07T17:28:40.000Z (almost 14 years ago)
- Last Synced: 2024-05-01T13:43:23.791Z (8 months ago)
- Language: Erlang
- Homepage: http://blog.socklabs.com/
- Size: 172 KB
- Stars: 61
- Watchers: 6
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
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\[email protected]](mailto:[email protected]).
## 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](http://beerriot.com/) rocks!) for the well made [erlang2facebook](http://code.google.com/p/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.