PHPEveryday.com PHP and Web Development Tutorial
What are you looking for?


Table of Content
Facebook Programming

First Application
Facebook Platform
First Facebook App

Facebook API
Facebook API
API Friends
API Events
API Groups
API Page
API Users

Facebook Markup Language
6 Type of FBML
FBML Users and Groups
Content Conditionally
fb:if-can-see
fb:if-can-see-photo
fb:if-is-app-user
fb:if-is-friend-with-viewer
Content in Profile Boxes
fb:if and fb:switch
UI Element and Widget
Using UI Element
Discussion Board
Creating Wall in Application
Building Request and Invitations

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>

facebook4.16
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 Bookmark and Share

blog comments powered by Disqus

Database Tutorial
  • Learn PHP MySQL
  • Learn PHP ADOdb
  • Learn PHP Data Object/PDO
  • Learn PHP XML
  • Learn PHP SimpleXML
Security Tutorial
  • Learn PHP Security
  • Learn HTTP Authentication
  • Learn PHPSecureSite
Framework Tutorial
  • Learn CodeIgniter
  • Learn Joomla
  • Learn Smarty
  • Learn Zend Framework
Template Tutorial
  • Learn Joomla Template
  • Learn WordPress Template
API Tutorial
  • Learn Facebook
JS Framework Tutorial
  • Learn MooTools
  • Learn JQuery
AJAX Tutorial
  • Learn AJAX in 10 Minutes
  • Learn AJAX Client Side
  • Learn AJAX PHP
  • Learn AJAX Remote Server
  • Learn AJAX Repetitive
  • Learn AJAX MySQL
  • Learn AJAX Grid
Web Services Tutorial
  • Learn Web Services NuSOAP
  • Learn Web Services WSDL
  • Learn Web Services WSDL Array
  • Learn Web Services .NET Grid
  • Learn Web Services WDDX
Package Post
  • Joomla Intro
  • Joomla Component
  • Joomla Module
  • Joomla MVC
  • Joomla MVC Backend
  • PostNuke Intro
  • Zend Framework Intro
  • Zend Framework Action
  • Zend Framework Database
  • Zend Framework Registry
  • Zend Framework Config
  • Zend Framework Login
  • Zend Framework Session
  • PHP Array Tips
  • PHP File Tips
  • PHP Email
  • PHP Ms Excel
  • PHP Pattern
  • PHP SMS
  • Flash Database
  • PHP Multitier
  • jQuery Introduction
  • jQuery Selectors
  • Portable Web Server
  • Web Mobile Intro
  • Drupal Installation
  • Drupal Configuration