Inside Network - Providing news and market research to the Facebook platform and social gaming ecosystem Inside Facebook    Inside Social Games    Inside Virtual Goods    AppData    PageData  
Facebook Marketing Bible   App Stats   Page Stats   Contact   About   Advertise       Subscribe:   Email   RSS   Twitter   Facebook
Offerpal Media
By Mike Knoop 2 Comments »

facebook platform developersYesterday, Facebook announced that they had updated the power of FQL (Facebook Query Lanugage) with respect to batching FQL API calls together. Developers already familiar with SQL languages will certainly appreciate this update, as the new query syntax is akin to the logic used in these other languages. Essentially, Facebook is now allowing developers to batch FQL calls together, and reference columns in earlier queries to mimic standard SQL “INNER JOIN” functionality.

Facebook has already provided examples of where this might be useful. The overarching theme of these examples are:

  1. Build an initial query to get user IDs in a certain scenario
  2. Utilize these user IDs to get information about those users

These two steps are required in almost every significant FQL application, and traditionally required two separate API calls to get the necessary user information. Now, however, Facebook is allowing developers to combine these steps (and as many more as you can think of) into a single API call. This significantly speeds up API calls, even more so than the existing best-practice of using batch.run. The new best practice is to utilize the fql.multiquery API call.

This is the first time that we’ve seen one API method gain more power than another. Traditionally, FQL offered the same amount of power and flexibility as simply using regular API calls such as stream.get and user.getinfo. Now that developers can combine FQL queries into one API transaction, developers would be wise to utilize FQL in their more complex API interactions.

Check out The Facebook Marketing Bible: 50+ Ways to Market Your Brand, Company, Product, or Service Inside Facebook.

Inside Facebook Sponsors
Mopay     SoftLayer
AdParlor

2 Responses to “Developer Note: Facebook Updates FQL Batching, Best Practices”

  1. Desarrollo: Facebook anuncia una mejora en su API de FQL | Faceblog Says:

    [...] Fuente: Insidefacebook.com [...]

  2. Roman Says:

    Great article.
    You can also develop with FQL in coderun IDE.
    It’s an online IDE with a lot of examples how to develop on facebook platform.
    http://www.coderun.com

Community

Login using your Facebook account, or enter your personal information below to comment.
Recent visitors
view more...

Leave a Reply