Pagination in Facebook applications with PHP

[ad#Adsense: Horiz 468]

Kyle Slattery, Viddler’s Lead Social Developer, recently released a nice little PHP-snippet for Facebook application developers:

“While building the Viddler Facebook application, I needed to create a pagination tool that worked just like Facebook’s. After looking at their HTML and their logic of what pages to display, I came up with one, which I’m releasing for anyone to use.”

Simple. Straight forward.