I'm trying to add a simple "share in facebook" button using a StageWebView, which works fine until it needs to close itself (the window, after the user login and actual post, the window should close [facebook is using "self.close()"]).
I don't think you get something like close on SWV, But there are many
solutions to the problems you are facing.
1. Handle the location change event. And check the URL's where you get
redirected. And set stage = null whenever you get the appropriate URL.
2. You can use the swc provided by adobe for Facebook. (Google - Facebook
3. You can use HTMLLoader(Desktop Only) and call JS functions inside page.
(and use JS SDK of Facebook as well as any event handlers you want to listen
Hope This Helps!!
Saumitra R. Bhave