Name

<fb:board/>

Synopsis

<fb:board xid="...">...</fb:board>

Creates a discussion board, controlled by Facebook. The board’s data is not accessible by any underlying server code of the programmer. When you specify an xid for the board, Facebook is able to track which topics and discussions go under which board.

FBML-Specific Attributes

Required

xid=[string] default: none

The unique identifier for the board. Each board in your application should have its own identifier. Note that only alphanumeric (A–Z, a–z, 0–9), underscores (_), and hyphens (-) are allowed.

Optional

canpost=[true|false] default: true

If true, the user viewing the page can post to the board.

candelete=[true|false] default: false

If true, any user viewing the page can delete any topic or post to the board.

canmark=[true|false] default: false

If true, any user viewing the page can mark a post as relevant or irrelevant.

cancreatetopic=[true|false] default: true

If true, any user viewing the page can create a new topic.

numtopics=[int] default: 3

The maximum number of topics to show in the first page of the board. Clicking on the “See All” link will still show all topics.

callbackurl=[string] default: the current page

The reference point for all actions within the board. This is the URL to fetch configuration for the discussion board.

returnurl=[string] default: the current page

The URL to take the user back to when they click on the “Return” link.

Example FBML

The following FBML code example produces two discussion boards using the <fb:board/> tag, both on the same page (Figure 3-51 shows the result):

<div style="width:300px">
<fb:board xid="discussion_board" 
          canpost="true"
          candelete="false"
          canmark="false"
          cancreatetopic="true"
          numtopics="5"
          returnurl="http://apps.facebook.com/fbmlessentials/board.php">
   <fb:title>Discuss FBML Essentials</fb:title>
</fb:board>
</div>
<div style="width:300px">
<fb:board xid="discussion_board_2" 
          canpost="true"
          candelete="false"
          canmark="false"
          cancreatetopic="true"
          numtopics="5"
          returnurl="http://apps.facebook.com/fbmlessentials/board.php">
   <fb:title>Discuss Facebook Trivia</fb:title>
</fb:board>
</div>
The resulting discussion boards from our <fb:board/> examples
Figure 3-51. The resulting discussion boards from our <fb:board/> examples

Additional Information

  • More than one <fb:board/> can exist on the same page, as long as the blocks have different xids.

  • To display the <fb:board/> block at a certain width, wrap it in a <div/> block with a styled width.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.113.55