Maybe one for a plugin master on here - how do I create a simple admin options page?

I've been looking all over the place for the andwer, and even the WP codex example code is giving me an error.

I just want to create a simple options page in admin for a plugin. The options will just be 3 single line input boxes.

This is the code that I have from the codex:

add_action('admin_menu', 'wp_facebook_pages');

function wp_facebook_pages() {
	add_options_page('WP Facebook Pages Options', 'WP Facebook Pages', 'manage_options', 'wpfacebookpages', 'my_plugin_options');

function my_plugin_options() {
	if (!current_user_can('manage_options'))  {
		wp_die( __('You do not have sufficient permissions to access this page.') );
	echo '<div class="wrap">';
	echo '<h2>WP Facebook Pages</h2>';
	echo '<form method="post" action="options.php"> ';
	settings_fields( 'wp_facebook_pages' );
	do_settings( 'wp_facebook_pages' );
	echo '<p class="submit">';
	echo '<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />';
	echo '</p>';
	echo '</form>';
	echo '</div>';
	echo '</div>';

That just gives me a white screen though, and doesn't actually state the code for adding the input boxes.