Hello
I have been searching to find a solution but my below code gives no error, but does not post anything to my wall:
import com.facebook.graph.FacebookMobile;
public function postToWallPopup(str : String) : void {
var attachement : Object = new Object () ;
attachement.link = '
https://developers.facebook.com/docs/reference/dialogs/';
attachement.picture = '
http://boallen.com/assets/images/randbitmap_true.png';
attachement.name = 'Test';
attachement.caption = str;//'Reference Documentation';
attachement.description = "Test";
FacebookMobile.api("feed" , postToWallPopupCallback, attachement);
}
function postToWallPopupCallback(success:Object, fail:Object):void
{
trace("called");
}
protected function button1_clickHandler(event:MouseEvent):void
{
postToWallPopup("test");
}
is there anything wrong with code above?