Getting list of messages & pokes in API
I've tried using both the old REST API, as well as the Graph API. I can not seem to figure out a way to get a list of ALL messages and pokes (and when I say messages, I mean private messages). These items do not appear in the stream (from what I can tell), so getting them th开发者_如何学Pythonere is not possible. Notification.get() in the REST API only gets unread messages. Any suggestions?
Read the basic Graph-mining tutorial at http://ericosgood.com/prog/facebook-android-sdk-tutorial/#comment-216.
To get information about the user, you need to branch /me, for events branch /me/events, for messages you need to branch me/inbox. Have a look at: https://developers.facebook.com/docs/reference/api/message/
For pokes use me/pokes. For both pokes + inbox you'll need the additional permission: read_mailbox.
精彩评论