daogr / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Send feed not have an callback (i already fixed it ) #234

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when try to use Facebook.ui to send feed, onFeedFinished not be called.

Facebook.ui("feed", publish, onFeedFinished, "iframe");

it beacuse FBAS.ui use "method" as the callback.

need change to

1` Facebook ui function add another param like "funName"

data.method = method;
data.funName = method;  // add this line

if (callback != null)
{
   openUICalls[method] = callback;
}
if (display)
{
   data.display = display;
}
ExternalInterface.call('FBAS.ui', JSON.encode(data));

========================================================================

in FacebookJSBridge change ui function to

ui: function( params ) {
    obj = FB.JSON.parse( params );
    cb = function( response ) { FBAS.getSwf().uiResponse( FB.JSON.stringify( response ), obj.funName ); }
    FB.ui( obj, cb );
},

my E-mail: iamzealotwang@126.com

Original issue reported on code.google.com by iamzealo...@gmail.com on 24 Dec 2010 at 10:24

GoogleCodeExporter commented 9 years ago
I have run into the same problem using the Facebook.ui call

Facebook.ui({method: 'apprequests', to:(userID), message: 'Test', data: 
'userID'});

Original comment by mshaffer...@gmail.com on 31 Jan 2011 at 1:32

GoogleCodeExporter commented 9 years ago
This seems to be the same issue as 242 
(http://code.google.com/p/facebook-actionscript-api/issues/detail?id=232). A 
fix will be included in our next build.

Original comment by rovertn...@gmail.com on 1 Feb 2011 at 11:03

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 6 Oct 2011 at 5:43