0

I've got a Flash application working with the AS3 Graph API as far as Facebook opening up the requested dialogues (purchase, post, invite). Unfortunately, these calls to Facebook.ui never seem to result in the corresponding callback method being triggered.

For example, the below method successfully opens the Facebook post dialogue, but the _fbPostResponse() method never gets fired in response.

Any help is GREATLY appreciated!

// Sample Code - This method should post a link to the user's wall
// The _fbPostResponse method should be invoked by Facebook when this action is complete.
function post(link:String, pic:String, name:String, caption:String, desc:String):void {
 trace("Post to wall");
    var params:Object = {
      link:link,
      picture:pic,
      name:name,
      caption:caption,
      description:desc
    }
  Facebook.ui("feed", params, _fbPostResponse);
}

// The _fbPostResponse method should be invoked by Facebook when this action is complete.
function _fbPostResponse(response:Object, fail:Object):void
{
  trace("Post response!");
}
1
  • I'm having the same issue. Did you by any chance got this to work?
    – taymless
    Feb 27, 2012 at 10:07

1 Answer 1

0

The Callback function for Facebook.ui takes only one parameter. Try the following:

// The _fbPostResponse method should be invoked by Facebook when this action is complete
function _fbPostResponse(response:Object):void
{
  trace("Post response!");
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.