Skip to content

Instantly share code, notes, and snippets.

@hiredman
Created November 12, 2009 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiredman/233400 to your computer and use it in GitHub Desktop.
Save hiredman/233400 to your computer and use it in GitHub Desktop.
(defn book->facebook [{:keys [uid title link description image]} secret]
(call {:method "Stream.publish"
:call_id (call-id)
:message (format "has added a book to LibraryThing")
:api_key (bb "api.key")
:action_links (encode-to-str
[{:text "LibraryThing"
:href "http://www.librarything.com/"}])
:attachment (encode-to-str
{:name title
:href link
:description description
:media [{:type "image"
:src image
:href link}]})
:uid uid}
secret))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment