(Note: I didn't register for the initial post so now I can't figure out how to reply, so I created this account.)
Here's my code:
In MainPage.xaml.cs:
((HtmlPage.Window.GetProperty("FB") as ScriptObject)
.GetProperty("Connect") as ScriptObject)
.Invoke("showPermissionDialog", "publish_stream");
I also tried
HtmlPage.Window.Invoke("ShowFBPermissionsDialog"); (in MainPage.xaml.cs)
with
<script type="text/javascript">
function ShowFBPermissionsDialog() {
FB.Connect.showPermissionDialog("publish_stream");
}
</script>
in Site.master.
I don't know how to set a Z-index on the permissions dialog since that is generated by Facebook.
There are no error messages.
Thanks.