kennylerma / facebook-actionscript-api

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

requestExtendedPermissions : loginwindow TypeError: Error #1006: value is not a function #341

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.FacebookDesktop.requestExtendedPermissions(handlePermissions,["publish_stream"
]);
2.Permissions window will come up. Select Allow
3.Code crashes: TypeError: Error #1006: value is not a function.
    at com.facebook.graph.windows::LoginWindow/handleLocationChange()[C:\Users\MikeHunt\Work\facebookGraphApi\desktopAPI\com\facebook\graph\windows\LoginWindow.as:178]

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

It should grant the permission and the call back function should kick in.

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

Windows server 2008.

Please provide any additional information below.

There seems to be a problem with the root, LoginWindow class . Is there a work 
around for this problem. Is there any other way I can use to request extended 
permissions.?

Thanks

Original issue reported on code.google.com by vaibhavv...@gmail.com on 26 Aug 2011 at 4:05

GoogleCodeExporter commented 9 years ago
Hi, does adding this line after super.handleLocationChange(event) (about line 
169 of LoginWindow.as) fix the issue?

html.removeEventListener(Event.LOCATION_CHANGE, handleLocationChange);

Original comment by rovertn...@gmail.com on 29 Aug 2011 at 4:29

GoogleCodeExporter commented 9 years ago
or wait sorry, add that removeEventListener line only after instances where 
html.stage.nativeWindow.close(); is called in that handleLocationChange method 
in LoginWindow.as. You should only have to add it 3 times.

Original comment by rovertn...@gmail.com on 29 Aug 2011 at 4:32