0
有沒有辦法將facebook feed彈出(發佈到牆上)在jQuery對話框中?這是我有的代碼,這將有對話框和飼料出現不同的彈出窗口:一種將facebook「feed」彈出到jquery對話框中的方法?
<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", // The server URL
{ artist_id : $(this).data('artist_id') }, // Data you want to pass to the server.
function(json) {
var text = '';
text = 'You want ' + json[1] + ' to play a show in your town! Increase the chances that ' + json[1] + ' comes through your area on tour by alerting your friends!';
$('#dialog-modal').text(text);
FB.ui({
method: 'feed'
});
alert(json[1]);
}// The function to call on completion.
);
});
});
</script>
建議表示讚賞!