improvements to share dialog.
Added facebook controller function.