http://dudley.uk.eventsdroid.com/', link: 'http://dudley.uk.eventsdroid.com/', picture: 'http://dudley.uk.eventsdroid.com/icon200.png', name: 'Events in Dudley', caption: 'http://dudley.uk.eventsdroid.com/', description: 'Find Next Events in Dudley' }; function callback(response) { document.getElementById('msg').innerHTML = "Post ID: " + response['post_id']; } FB.ui(obj, callback); }