Profile.setInfo
From Facebook Developers Wiki
[edit] Description
Configures an application info section that the specified user can install on the Info tab of her profile.
[edit] Parameters
| Required | Name | Type | Description | |
| required | api_key | string | The application key associated with the calling application. | |
|---|---|---|---|---|
| sig | string | An MD5 hash of the current request and your secret key, as described in the How Facebook Authenticates Your Application. | ||
| v | string | This must be set to 1.0 to use this version of the API. | ||
| title | string | The title or header of the application info section. | ||
| type | int | Specify 1 for a text-only field-item configuration or 5 for a thumbnail configuration. | ||
| info_fields | array | A JSON-encoded array of elements comprising an application info section, including the field (the title of the field) and an array of info_item objects (each object has a label and a link, and optionally contains image, description, and sublabel fields. | ||
| uid | int | The user ID of the user adding the application info section. | ||
| optional | format | string | Desired response format. Either XML (default) or JSON. |
[edit] Example Requests
$info_fields = array(
array('field' => 'Favorite Bands',
'items' => array(array('label'=> 'The Mountain Goats',
'image' => 'http://foo.bar/Mountain_goats.jpg',
'description'=>'The Mountain Goats is an urban folk band led by American singer-songwriter John Darnielle.',
'link'=>'http://apps.facebook.com/music/Mountain_goats.php'),
array('label'=>'Radiohead',
'description' => 'Radiohead are an English alternative rock band from Oxfordshire.',
'image'=> 'http://foo.bar/Mountain_goats.jpg',
'link'=>'http://apps.facebook.com/music/Mountain_goats.php'))));
$fb->api_client->profile_setInfo('My Smilies', 5, $info_fields, $uid);
