@arc-publishing/sdk-identity
Version:
JS Identity SDK for working with Identity API
23 lines • 766 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFacebookLoginStatus = void 0;
var getFacebookLoginStatus = function (forceRoundtrip) {
return new Promise(function (resolve, reject) {
try {
window.FB.getLoginStatus(function (response) {
if (response) {
resolve(response);
}
else {
throw new Error('Failed to get a response from FB');
}
}, forceRoundtrip);
}
catch (e) {
reject(e);
}
});
};
exports.getFacebookLoginStatus = getFacebookLoginStatus;
exports.default = exports.getFacebookLoginStatus;
//# sourceMappingURL=getFacebookLoginStatus.js.map