Why this not working in IE ?
Posted
by ankit vishwakarma
on Stack Overflow
See other posts from Stack Overflow
or by ankit vishwakarma
Published on 2010-06-18T10:07:18Z
Indexed on
2010/06/18
10:13 UTC
Read the original article
Hit count: 561
php5
<script>
FB.init({
appId : '117680911578526',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
//alert(FB.getSession());
/*window.fbAsyncInit = function() {
FB.Canvas.setAutoResize();
}*/
</script>
<script type="text/javascript">
FB.ui(
{
// http://www.facebook.com/connect/prompt_feed.php?action_links=%5B%7B%22text%22%3A%22Movies%22%2C%22href%22%3A%22http%3A%2F%2Fapps.facebook.com%2Fhindi_movies%2F%22%7D%5D&api_key=117680911578526&attachment=%7B%22name%22%3A%22Raavan%20%22%2C%22href%22%3A%22http%3A%2F%2Fapps.facebook.com%2Fhindi_movies%2Fmovie%2F6%22%2C%22caption%22%3A%22I%20reviewed%20Raavan%20%20movie%20on%20HindiPix%22%2C%22media%22%3A%5B%7B%22type%22%3A%22image%22%2C%22src%22%3A%22http%3A%2F%2Fmovies.kewlsocial.com%2Fmovies%2Fuploads%2Fmovies%2FRaavna_movie_small_thumb.jpg%22%2C%22href%22%3A%22http%3A%2F%2Fapps.facebook.com%2Fhindi_movies%2Fmovie%2F6%22%7D%5D%7D&callback=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23%3F%3D%26cb%3Df1630e903ba2956%26origin%3Dhttp%253A%252F%252Fmovies.kewlsocial.com%252Ff33a89873048d9c%26relation%3Dparent%26transport%3Dflash%26frame%3Df1395ad7dcd52ce%26result%3D%2522xxRESULTTOKENxx%2522&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23%3F%3D%26cb%3Dfc544c0f809639%26origin%3Dhttp%253A%252F%252Fmovies.kewlsocial.com%252Ff33a89873048d9c%26relation%3Dparent.parent%26transport%3Dflash&display=dialog&locale=en_US&message=&method=stream.publish&sdk=joey&user_prompt_message=Share%20your%20thoughts%20about%20movie
method: 'stream.publish',
//auto_publish: true,
display: 'dialog',
message: '' , //some default msg in textbox
attachment: {
name: '<?=$movie['movie_title']?>',
caption: 'I reviewed <?=$movie['movie_title']?> movie on HindiPix',
href: 'http://apps.facebook.com/hindi_movies/movie/<?=$this->uri->segment(3)?>',
media:[{
'type':'image',
'src':'http://movies.kewlsocial.com/movies/uploads/movies/<?=$movie['movie_image']?>',
'href':'http://apps.facebook.com/hindi_movies/movie/<?=$this->uri->segment(3)?>'
}]
}
,
action_links: [{ text: 'Movies', href: 'http://apps.facebook.com/hindi_movies/' }],
//user_message_prompt: 'Radhey'
user_prompt_message: 'Share your thoughts about movie'
}/*,
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}*/
);
</script>
© Stack Overflow or respective owner