I'm developing an IFrame application in Facebook (using pyfacebook and Django) and could not understand the official documentation. Can someone give me a pointer on how to request extended permissions (like read_stream, publish_stream and offline_access)?
I experimented with FB Connect but I'm not even sure it's the right way to go for an IFrame application.
The following code placed in my template, pops up the alerts but no permission dialog:
FB.init(my_api_key, "/media/js/xd_receiver.htm");
FB.ensureInit(function() {
alert("aa");
FB.Connect.showPermissionDialog("email,offline_access,read_mailbox,publish_stream");
alert("aa");
});
p.s. Looks like http://stackoverflow.com/questions/1967438/how-to-get-and-use-extended-permissions-in-facebook-with-python-django is relevant but I believe it involves FBML which is not my case.