Saturday, 15 May 2010

A way to put the facebook "feed" pop up inside a jquery dialog box? -



A way to put the facebook "feed" pop up inside a jquery dialog box? -

is there way set facebook feed pop (that publishes wall) within jquery dialog box? code have, have dialog box , feed come different pop ups:

<script> $(function() { $( "#dialog-modal" ).dialog({autoopen: false, resizable: false, draggable: false, height: 250, width: 500, modal: true, dialogclass: 'main-dialog-class'}); $( "#opener" ).click(function() { $( "#dialog-modal" ).dialog( "open" ); $.getjson( "/like_artist.php", // server url { artist_id : $(this).data('artist_id') }, // info want pass server. function(json) { var text = ''; text = 'you want ' + json[1] + ' play show in town! increment chances ' + json[1] + ' comes through area on tour alerting friends!'; $('#dialog-modal').text(text); fb.ui({ method: 'feed' }); alert(json[1]); }// function phone call on completion. ); }); }); </script>

suggestions appreciated!

you utilize feed dialog calling per url in “fake popup”, if open within iframe in jquery dialog box.

(give url on site return_uri, execute piece of javascript code in iframe’s parent window, close dialog 1 time again or something.)

although, work if user logged in facebook (you might want utilize fb.getloginstatus determine beforehand) – because if not, facebook redirect auth dialog, , can not shown in kind of frame, has opened @ top level window.

jquery facebook

No comments:

Post a Comment