In this example, we will use the CI built-in model to retrieve data from Facebook.
The example displays a Facebook user name and picture and displays the user's Facebook friends.
This example will be constructed from the following controllers, model, and view:
application/controllers/fbpage.php: This controller loads the model
$this->load->model('fbmodel'): This controller renders the view
fbview, which displays the user's Facebook picture and name, and table, which contains the user's friends' names and links to their profiles