Created
September 26, 2011 22:39
-
-
Save koenbok/1243614 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var api = new FB.Messages(); | |
api.login("koenbok", "password", function(result) {}) | |
api.threads.fetch({limit: 100, tags: ["inbox", "unread"]}, function(results) {}) // list with threads | |
api.threads.count({limit: 100, tags: ["inbox", "unread"]}, function(results) {}) // thread count | |
api.messages.fetch({thread:thread.id}, function(results) {}) // all messages for thread | |
api.messages.put({thread:thread.id, parent:message.id ...}, function(results) {}) // send a new message | |
api.events.subscribe("new.message", function(info) {}) // get notified of incoming messages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment