https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/

Advertisements