Facebook Send Button is used by users of website to share interesting content with their friends by selecting them from friends list. This will result in sending the message to friends' inbox. There is also an option to send it to the wall of group that user is fan of, or any email address.
Send Button Image
Following image represents the defualt Facebook Send Button with opened popup dialog for selecting friends.
PHP Example
The example shows default Facebook Send Button, which is shown on picture above. The example shows the code of whole page, but important content is highlighted: required includes and initialization for any page with brown color, and working with Facebook Send Button PHP class with blue color.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <title>Facebook Send Button PHP Example</title> </head> <body> <?php require_once 'facebook.php'; require_once 'faceconn/faceconn.php'; UseGraphAPI(); $send = new SendButton(); $send->Render(); ?> </body> </html>
Configuration
Configuration of the Facebook Send Button PHP class is done through calls of the setter methods, which in turn set the private properties. For Facebook Send Button PHP class, there are no required properties to set. All you have to do is to create new instance of the class and call Render() method. All properties from the list below are optional.




