AMT Blog

Fbootstrapp – Facebook iframe App Development Toolkit

Fbootstrapp is an excellent (HTML, CSS, and JavaScript) toolkit providing templates for quick development of Facebook iframe apps.

It is build on Twitters’ Bootstrap, has styles for typography, forms, buttons, tables, grids, navigation and much more which are all styled to fit Facebook's standard UI.

There are two 12-column grids included, one for 520px (fan-page), the other one for 760px (standalone app). 

Fbootstrapp

Read more…

How to: Getting a List of Facebook Pages a user is an admin of

How Facebook Page Integration is Done in Unified Inbox

While working on the Facebook Page Integration of Unified Inbox our developers used Graph API & were looking for a better way to get back a list of page IDs of all the pages that a user is an admin of.

Here is how we did it:

You can call FB.api(/me/accounts), if you don't want to use FQL.

'accounts' is a connection of the User object. See the documentation for this @ http://developers.facebook.com/docs/reference/api/user

Of course, with Facebook, there's always a catch. Right now this method will return not only the pages the user is an admin of, but also what applications they have installed. I'm almost positive this is NOT the intended behavior - I seem to remember using this a few months ago and only getting a list of pages. The documentation makes no mention of applications in this list either.

This is an easy problem to solve though - Facebook returns the name, category, and id for each item on the list, and each application has a category of 'Application'. I'm simply making sure I only list items whose category is not 'Application'.

Now, if you are willing to try with FQL:

FB.api({method: 'fql.multiquery',        access_token: <access_token>,        queries: {            query1: 'select page_id from page_admin where uid = ' + <uid>,            query2: 'select page_id, name, page_url from page where page_id in (select page_id from #query1)'        }       }, function(queries){           var pages = queries[1].fql_result_set;       }}

Read more on this topic here…

Uib-messages-fb-twit-emails

11
To Posterous, Love Metalab