0

我正在编写 ActionScript 游戏并希望将其与 FB 集成,因此我使用了http://code.google.com/p/facebook-actionscript-api/和我在同一问题线程中找到的自定义对话框功能。它是这样的:

    protected function dialog(method:String, callback:Function, stageReference:Stage, stageWebView:StageWebView, params:* = null):void {
        dialogCallback = callback;
        stageRef = stageReference;

        webView = stageWebView;
        webView.stage = stageReference;

        webView.assignFocus();

        dialogWindow = new DialogWindow(handleDialog);
        dialogWindow.open(method, applicationId, webView, params);
    }

我已经编写了模块来处理所有 FB 的东西,而且效果很好。但是几天前我注意到出现了该对话框,但是当我选择朋友并尝试向他们发送请求时,我收到错误消息:

An error occurred with your app. Please try again later.
API Error Code: 2
API Error Description: Service temporarily unavailable
Error Message: User can't send this request: Unknown error

我已经检查过了,发现在选择朋友并单击发送对话框将位置更改为后http://www.facebook.com/dialog/apprequest,发生错误,然后单击“确定”后将位置更改为redirect_uri。

你有什么想法?这是我的错还是脸书?

4

2 回答 2

0

对于apprequest,我使用了这个

function invite(evt:MouseEvent):void
{
          var obj:Object = 
          {
              message: "aaa",//max 255
              title: "bbb"//max 50
          };
          Facebook.ui("apprequests", obj, callback, "iframe");
}

function callback(res):void
{

}
于 2012-10-29T12:05:03.877 回答
0

It seems, the apprequests are currently broken: https://developers.facebook.com/bugs/540196825997304

于 2012-10-30T09:00:43.533 回答