Talk:Application Info Sections

From Facebook Developer Wiki

Jump to: navigation, search

It seems that the Info tab will only show the first field when you set the type parameter to 5 (thumbnail).

For example, with the following code (from the "tutorial"):


<?php

function get_sample_info() {
          return array(
                      array('field' => 'Good Smilies',
                            'items' => 
                            array(array('label'=> 'Happy',
                                        'image' => IMAGE_LOCATION . 'smile0.jpg',
                                        'sublabel'=>'',
                                        'description'=>'The original and still undefeated.',
                                        'link'=>'http://www.facebook.com'),
                                  array('label'=>'Indifferent',
                                        'image'=> IMAGE_LOCATION . 'smile1.jpg',
                                        'description'=>'meh...',        
                                        'link'=>'http://www.facebook.com'),
                                  array('label'=>'Sad',
                                        'image'=> IMAGE_LOCATION . 'smile2.jpg',
                                        'description'=>'Oh my god! you killed my dog!',
                                        'link'=>'http://www.facebook.com'),
                                  array('label'=>'Cool',
                                        'image'=> IMAGE_LOCATION . 'smile3.jpg',
                                        'link'=>'http://www.facebook.com',
                                        'description'=>'Yeah. whatever'))), 
                      array('field'=> 'Bad',
                            'items'=>
                            array(array('label'=> 'Evil',
                                        'link'=>'http://www.evil.com'))));
    }                                   

$info_fields = get_sample_info();
$fb->api_client->profile_setInfo('My Smileys', 1, $info_fields, $user);

?>

When I view the Info tab I see only the 'Good Smilies' field, and the not the Bad' field. However, when I change the 'type' parameter to 1, I see both.

Can someone from Facebook confirm this behavior?

I spoke with the engineer who created Smiley and he confirmed that this is expected behavior. -- Pete User:563683308

(Reposted from Talk:Profile.setInfo



=== Info Section Editing Questions

Ok, so I've set the info options, I've set the callback url, but I see no UI on the info tab... bug or not yet implemented? Guess I'll file a bug.

[edit] FBML in description

I wanted to add some FBML in the description field of an info section, but the fbml doesn't get parsed. There's no indication anywhere that it *should* be parsed, but i wanted to display some statistics related to the profile's owner appreciation of the given item, and also, use the <fb:intl> feature, since the description is basically a preformatted line of text with some words changed depending on the item.

Is there another way to make a type 5 (with image) info section with fbml parsed? ThaNerd 06:37, 6 January 2009 (PST)

reference