PageSourceSearch

https://motionsafe.id/Content/js/LoginExternalFB.js

js motionsafe.id collected 2026-09-28 18:57:06 UTC 1,301 bytes, 38 lines download raw bytes

1window.fbAsyncInit = function () {
2    var facebookid = '320813405599456'
3    FB.init({
4        appId: facebookid,//'265912657163711',
5        status: true, // check login status
6        cookie: true, // enable cookies to allow the server to access the session
7        xfbml: true, // parse XFBML
8        oauth: true // enable OAuth 2.0
9    });
10};
11(function () {
12    var e = document.createElement('script'); e.async = true;
13    e.src = document.location.protocol +
14    '//connect.facebook.net/en_US/all.js';
15    document.getElementById('fb-root').appendChild(e);
16}());
17
18function loginByFacebook() {
19    FB.login(function (response) {
20        if (response.authResponse) {
21            FacebookLoggedIn(response);
22        } else {
23            console.log('User cancelled login or did not fully authorize.');
24        }
25    }, { scope: 'email' });
26}
27
28function FacebookLoggedIn(response) {
29    var loc = 'RegisterExternalLogin';
30    if (loc.indexOf('?') > -1)
31        window.location = loc + '?authprv=facebook&access_token=' 
31+ response.authResponse.accessToken;
32    else
33        window.location = loc + '?authprv=facebook&access_token=' + response.authResponse.accessToken;
34}
35
36function enableBtn() {
37    document.getElementById("btnFormLogin").disabled = false;
38}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.