Use REST Endpoints, Not FQL

While the Facebook Query Language (FQL) might be easy to work with (since it has an SQL-like syntax and provides easy access to users’ social data), if you use FQL in your application, you’re in for a major overhaul when porting it from Facebook to an OpenSocial container.

This reiterates the point covered earlier in the section. All social reference feeds should be pulled from a container’s REST endpoints, and all container-specific paths should be mapped into a series of configuration variables so that they can be easily updated for a new container when the application is ported.

Get Programming Social Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.