![]() ![]() If not for the initial problems I had figuring out which parameters to pass to APIs and the concern about building on an API that isn’t yet at version 1.0, the Activity Stream API would have been perfect for my needs. Below are example of what HTTP requests to retrieve your news feed look like using both approaches With FQL, you can perform queries against the stream (FQL) and comment (FQL) to get the same results.īoth mechanisms give you the option of getting back the data as XML or JSON. For interacting with the Facebook news feed, you have stream.get and stream.getComments as the REST-like methods for accessing the news feed and a comment thread for a particular feed item respectively. You can either call a “REST-like” URL endpoint via HTTP GET or perform a SQL-like query via FQL on a generic end point. Most API calls at Facebook have two entry points. ![]() Good: Lots of options for getting at the data On the other hand, figuring out there are a few quirks of the API that make the web developer in me cringe and the desktop developer want to beg for mercy.īelow are my opinions on the Open Stream API, the purpose of sharing is so other developers who plan to use the API may avoid some of the pitfalls I did and also to share feedback with my peers at Facebook and elsewhere on best practices in providing activity stream APIs. On the one hand, the functionality the API provides is greatly enabling and has already unleashed a bounty of innovation as evidenced by the growing number of applications for interacting with your Facebook news feed on the desktop (e.g. As I worked through the code in my few free moments I was alternately impressed and frustrated by the Open Stream API. This functionality is made possible by the recently announced Facebook Open Stream API. In my previous post I talk about adding support for reading and commenting on your Facebook news feed in RSS Bandit. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |