开发者

AS3 Facebook.ui callback doesn't work

Today I'm going to use this method:

vardataObject:Object =开发者_高级运维 {...}
Facebook.ui("stream.publish", dataObject, cb, "iframe");
function cb(res:Object):void
{
   ...do something...
}

I always use this method and it always work. But today the callback doesn't work! Someonelse have the same problem? Some days ago I know that it worked...

I'm using the API 1_6, but I've tryed with API 1_7 too.

Many thanks!


I had similar problem with Facebook.api() method. It turned out that Facebook changed their api a bit and I had to change

if (Facebook.getSession() && Facebook.getSession().accessToken == null) {
    // code...
} 

into

if (Facebook.getAuthResponse() && Facebook.getAuthResponse().accessToken == null) {
    // code...
} 

and everything started to work again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜