Facebook Friend List Import using fboauth
The code you have there is returning friend's names which could be problematic if any of the user's friends have the same name (names like John Smith and Mohammed Abdul spring to mind).

You should change your friend import function to get the facebook user id like this:

function mymodule_fboauth_action_friend_import($app_id, $access_token) {
  $result = fboauth_graph_query('me/friends?fields=id', $access_token);
  drupal_set_message(t('Import complete!'));
}


As you rightly pointed out fboauth has a useful API including this method which turns facebook user ids into Drupal user ids:

/**
 * Load a Drupal User ID given a Facebook ID.
 */
function fboauth_uid_load($fbid) {
  $result = db_query("SELECT uid FROM {fboauth_users} WHERE fbid = :fbid", array(':fbid' =&gt; $fbid));
  $uid = $result-&gt;fetchField();
  return $uid ? (int) $uid : FALSE;
}


To make an array of Drupal user profiles you could write this in your code:

$accounts = array();
foreach($result-&gt;data as $fbuid){
  $accounts[] = user_load(fboauth_uid_load($fbuid-&gt;id));
}


How you then use those profiles depends on where you want to display them, but something like this should do the trick:

foreach($accounts as $account){
  print l($account-&gt;name, 'user/'.$account-&gt;uid);
}


If you put it all together you will have something like this - you may need to adjust some of the specifics as I do not know how you wish the information to be displayed:

&lt;?php
function mymodule_fboauth_actions() {
  $actions['mymodule_friend_import'] = array(
    'title' =&gt; t('Imports your friends'),
    'callback' =&gt; 'mymodule_fboauth_action_friend_import',
    'arguments' =&gt; array)
      'app_id' =&gt; MISSING,
      'access_token' =&gt; MISSING,
    ),
    'permissions' =&gt; array(
      'user_friends',
    ),
);
  return $actions;
}

function mymodule_fboauth_action_friend_import($app_id, $access_token) {
  $result = fboauth_graph_query('me/friends?fields=id', $access_token);
  drupal_set_message(t('Import complete!'));

  $accounts = array();
  foreach($result-&gt;data as $fbuid){
    $accounts[] = user_load(fboauth_uid_load($fbuid-&gt;id));
  }

  foreach($accounts as $account){
    print l($account-&gt;name, 'user/'.$account-&gt;uid);
  }
}


If this doesn't display anything that means print is the wrong function to use in this context.  How you get the items to display depends entirely on where and how you are calling this function.  If it's part of a hook such as hook_node_view() you can edit the node entity before it is rendered, but if (as I suspect) this function is being run in the background without refreshing the screen you will likely have to employ some JQuery or AJAX to get the relevant items to display.

I would start with this post on Javascript and JQuery for an explanation of how Drupal uses JQuery, and this post on building AJAX into non-form elements in Drupal.