Inside an online social community, users want to know what their friends are doing. News feed is one of the sources that friends can share what they did recently or what they think is interesting. The news feed is displayed on the front page of the Facebook account by default. We can fetch the news feed from the API and display them inside the Flash virtual world. We will further filter the news feed to only display friends' news feed which is related to the Flash virtual world application.
In order to fetch the news feed from the API, we need to grant another permission from the user.
_fb.grantExtendedPermission("read_stream");
We will use the GetStream
class to fetch the news feed stream. There is a parameter to filter the fetching result. We can pass the app_ApplicationID
to filter the result with the specific application only. Here my application ID of the Flash virtual world is 10910600246265
, and the filter parameter is app_10910600246265...