I want to do Facebook Login on a mobile web page. This can be done with a Facebook Login Button. It works great. I have the following code in my GWT UiBinder page:
<g:HTMLPanel>
<div class="fb-login-button" data-max-rows="1" data-size="xlarge"
data-show-faces="false" data-auto-logout-link="false"
data-scope="email,publish_actions,user_birthday,user_likes"
onlogin="alert('I am a JavaScript callback');"></div>
</g:HTMLPanel>
If login is successful, the onlogin
JavaScript function is called.
How can I use this callback function somehow to get notified when this function is called? Is there a way to use JSNI or something else here?