Facebook Programming: FBML - Discussion Board
Facebook Application Programming Step by step tutorial - part 20. To add a discussion board on the application, you can use the element fb:board. You also can customize the various attributes. Examples like the following:
<fb:board xid="yummie_board" canpost="true" candelete="true" canmark="false" cancreatetopic="true" numtopics="5" returnurl="http://apps.facebook.com/yummietester/discuss.php"> <fb:title>Discuss About This Application</fb:title> </fb:board>
Easy way to create discussion board
Here is an explanation attributes the element fb:board:
- xid is most needed parameters. Every board discussion you always have a unique ID value. ID can only contain alphanumeric characters, underscore (_) and hyphen.
- canpost is a parameter to determine whether a user can post a message or not.
- candelete is a parameter to determine whether the user can delete the message or not.
- canmark is feature to mark whether the message is relevant or not.
- cancreatetopic is a parameter to determine whether the user can create a topic.
- numtopics is the number of topics that appear on a page.
- ReturnUrl to determine what the URL displayed when a back link is clicked. The default is the current page.
You can use fb:title element in the fb:board (or fb:comments) to determine the title of the discussion board. So easy, right? You do not bother to write the much code. Content of the message boards has appeared on your application page.
Previous: Facebook Programming: FBML - Using UI Element
Next: Facebook Programming: FBML - Creating Wall in Application
Tag: facebook, api Category: PHP API Post : November 20th 2009 Read: 2,048
blog comments powered by Disqus
