pythonforfacebook/facebook-sdk — pull request #75 by euanlau (2013-04-24 08:20:46+00:00)
Title: Added paginator support to connections

Based on DRY principle, it is better to add paginator support in the module to avoid writing paginator codes everywhere.

Example:

generator = graph.get_connections(your_object_id, 'photos', as_generator=True)
for page, url in generator:
do your stuff with the page

The default value of as_generator is False to maintain compatibility.