User:Emacs Lisp

From Facebook Developer Wiki

Jump to: navigation, search

[edit] facebook.el

Facebook.el is a bare-bones emacs lisp implementation of the Facebook API. Because of facebook's authentication scheme you've got to have gnutls or openssl installed, as well as a working browser that handles https to log in and give your app permissions. Also, it requires hober's excellent json.el which can be obtained here:

 http://edward.oconnor.cx/elisp/json.el

To log into facebook, call (facebook-login) To check credentials/optionally login call (facebook-check-creds) To make api calls call (facebook-call-function "<funcname>" (list (cons "of" "args") (cons "more" "args")))

Only two actual api functions are present right now, (though you can use facebook-call-function-post to call whatever you'd like...): facebook-users-has-app-permission = users.hasAppPermission facebook-users-set-status = users.setStatus facbeook-users-set-status checks for the applicable app permission redirects the user to the permission page if needed and then goes and updates the status.

The sf.net project homepage for this project can be found here: http://sf.net/projects/facebook-el

[edit] Caveat

Note that there are some errors in the library hosted in sf.

reference