views:

61

answers:

2
 <script
 src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"
 type="text/javascript"></script>
 <script type="text/javascript">
 FB.init('cef61789d5df166ac00c9fe13007c110', "xd_receiver.htm");
 FB.Connect.showPermissionDialog("offline_access");
 </script>

After a user login i am using the above code to get the Dialog box.

Why itsnt showing permission dialog??

A: 

I had this problem. Wrap the call to FB.Connect inside an "ensure init" like so:

FB.ensureInit(function() { FB.Connect.showPermissionDialog("offline_access"); });

That cleared things up for me.

just_wes
A: 

Thank you! you are awesome man :)

anthony
Glad I could be of service. I'm assuming it's working for you now?
just_wes
Yep, Its working, i would be greatfulto you if can look at this issue here http://stackoverflow.com/questions/1931874/facebook-api-cant-acess-any-info
anthony