daogr / facebook-actionscript-api

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

Facebook.api without callback #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

call Facebook.api without callback:

Facebook.api("/me/feed", null, {message:"..."}, "POST");

What is the expected output? What do you see instead?

I expected it's OK callback is null, 

but throws TypeError:

 TypeError: Error #1006: value is not a function.
    at com.facebook.graph.core::AbstractFacebook/handleRequestLoad()
    at com.facebook.graph.net::FacebookRequest/dispatchComplete()
    at com.facebook.graph.net::FacebookRequest/handleDataLoad()
    at com.facebook.graph.net::FacebookRequest/handleURLLoaderComplete()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

What version of the product are you using? On what operating system?

facebook-actionscript-api 1.6
Mac 10.6.6 FlashPlayer 10.2.152.26 debugger

Please provide any additional information below.

in AbstractFacebook/handleRequestLoad(),

  if (resultCallback === null) {
      delete openRequests[target];
  }

might be:

  if (resultCallback === null) {
      delete openRequests[target];
      // no callback
      return;
  }

Original issue reported on code.google.com by icuto...@gmail.com on 28 Feb 2011 at 11:30

GoogleCodeExporter commented 9 years ago
I would recommend adding a callback just to make sure that your data was 
actually posted. But regardless the fix will be in our next release.

Original comment by rovertn...@gmail.com on 2 Mar 2011 at 6:27

GoogleCodeExporter commented 9 years ago
Thank you for your prompt reply and your project.

Original comment by icuto...@gmail.com on 3 Mar 2011 at 2:03