revetkn/restfb — pull request #8 by fkurkowski (2012-04-12 14:28:01+00:00)
Title: Page conversation

Hello.

I have just added support for Page conversations. Pretty much just created two new restfb types based on these:

http://developers.facebook.com/docs/reference/api/message/
http://developers.facebook.com/docs/reference/api/page/#conversations

Notice that Facebook does not send the number of unread messages in a conversation if it's zero. Because of this, I'm initializing the unreadCount variable with zero as it doesn't make sense for it to be null. When new messages are available, the JsonMapper will override the default value. You can check it out in the Conversation class.

Regards,
Felipe Kurkowski