shindesandeep / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

how to create a popup Permission box in iframe model? #335

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
how to create  a  popup  Permission  box   in  iframe  model?

just like  fbml  
<fb:prompt-permission perms="read_stream,publish_stream,email" 
next_fbjs="greet()">

but how to create in iframe????

i try to use like this:
 <fb:serverFbml width='750px' >  
<script type="text/fbml">
<fb:prompt-permission perms="read_stream,publish_stream,email" 
next_fbjs="greet()">aaaaa
</fb:prompt-permission>
 </script>
</fb:serverFbml>

but  the  next_fbjs="greet()"  not  to go into effect。

anybody  can help me?

thanks!

Original issue reported on code.google.com by lshaohe2...@gmail.com on 8 Sep 2010 at 11:08

GoogleCodeExporter commented 8 years ago
today i have a try like this:
<script>
  var dialog = {
    method: 'fbml.dialog',
    display: 'dialog',
    fbml: '<fb:header icon="false" decoration="add_border">Hello World!</fb:header><fb:prompt-permission perms="read_stream,publish_stream,email" ></fb:prompt-permission>',
    width: 800,
    height: 100
  };
  FB.ui(dialog, function(response) { alert(response); });
</script>

but it is not effect 

waiting  for  you  help.....    

Original comment by lshaohe2...@gmail.com on 9 Sep 2010 at 2:46