I am having some issues with the following Hangout button JavaScript code. I was expecting a callback when the user clicks on the button, but it doesn't seem to be working. Can anyone see if there is anything wrong with it?
gapi.hangout.render('hangout-button', {
'render': 'createhangout',
'topic': 'hangout_test',
'invites': "[{'id': '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="96eeeeeed6f1fbf7fffab8f5f9fb">[email protected]</a>', 'invite_type': 'EMAIL'}]",
'initial_apps': [{
'app_id': "google_app_id",
'app_type': 'ROOM_APP',
'start_data': {
"user_id": "user_id",
"user_email": "user_email",
"token": "token",
"callback_url": "abc.com/hooks/hangout",
"host": "abc.com",
"callback_data": "user_data"
}
}],
'hangout_type': "normal",
'widget_size': 130
});