views:

352

answers:

1

Hi,

I'm using Django/Python , I need to ask the user for permission to let me put feeds ( ideally oneliners which was not working so I thought to use full streams) into the user profile.

Would you like to receive email from our application?

This is giving me a hyper link which I click and it shows me the permission box. What is need for this to happen is after the end of the game it automatically prompts for it and then publishes. Which isn't really working.

Thanks :)

+1  A: 

use the javascript FB.Connect.showPermissionDialog method.

it takes an optional callback function to which it passes whether the permission was allowed or not, so you could call FB.Connect.streamPublish in that callback if the permission was granted.

teepark
stupid SO wouldn't let me post more than one link. FB.Connect.streamPublish docs are here: http://developers.facebook.com/docs/?u=facebook.jslib.FB.Connect.streamPublish
teepark
I tried this, now its working fine :) Facebook.showPermissionDialog('publish_stream,read_stream');
Fahim Akhter