Creating a standard ListView
The next step is to take the data received from the Graph API and render it into the view.
Right now, the feed
array in the App
component state contains 25 objects. Each object contains the following key-value pairs:
created_time
: This is the date and time this post was madeid
: This is an identifier that will let us grab the details of the poststory
: This an optional post description that adds context, such as whether the post contained a location-based check-in, whether it was a shared memory or link, and so onmessage
: This an optional message that the user personally wrote for this post
Each post contains several edges, just like a node on a graph data structure. For Friends
, we will access these following edges:
/likes
: This is a list of users who like this specific post/comments
: These are the comments made to this post/attachments
: These are the media attachments associated with the said post
Before we can access the edges, we should render a ListView
component...