The Facebook Platform API translated to idiomatic Clojure.
(ns myns.myclass
(:require (facebook [client :as facebook])))
(defn mymethod []
(facebook/init-facebook! "yourapikey" "yoursecret")
(prn (facebook/friends-get 193021930)))
API method coverage is very incomplete and under active development as of March 2010. Please file incomplete or wrong arguments lists, or missing or wrong method names on Github at: http://github.com/myfit/clj-facebook/issues.
This library does not currently support optional arguments on the API calling methods. It instead offers all of the arguments for you to use, and it's up to you to pass nil when you don't care. Support for keyword arguments with default values (def/defnk style) is coming very soon.
If you're using Leiningen, add
[clj-facebook "1.0.0-SNAPSHOT"]
to your dependencies to have lein handle clj-facebook for you. See http://clojars.org/clj-facebook.