PageSourceSearch

https://tenniskansascity.com/assets/facebook.js

js tenniskansascity.com collected 2026-10-09 00:04:44 UTC 1,595 bytes, 51 lines download raw bytes

1/******** facebook ***********/
2
3function facebookButtonLogin(){
4    facebookSessionResponse({
5        session: FB.getAuthResponse()
6    });
7}
8
9function linkAccountButton(){
10    var session = FB.getAuthResponse();
11    if(session){
12        jQuery('#fb_link_form #session').val(JSON.stringify(session));
13        jQuery('#fb_link_form').submit();
14    }
15}
16
17// handle a session response from any of the auth related calls
18function facebookSessionResponse(response) {
19    if (!document.getElementById('logged_in_user') && response.session){
20        jQuery('#session').val(JSON.stringify(response.session));
21        jQuery('#fb_login_form').submit();
22    }
23}
24
25function removeToken(location) {
26    jQuery.get('/admin/remove_facebook_token', {
27        location: location
28    }, function(){
29        alert('removed.')
30    });
31}
32
33function adminFacebookButtonLogin(location) {
34    var session = FB.getAuthResponse();
35    if (session.accessToken) {
36        jQuery.get('/admin/update_facebook_token', {
37            location: location,
38            facebook_token: session.accessToken,
39            facebook_uid: session.userID
40        }, function(data){
41            alert('Connected. You should be able to post scores to this location from the admin scores page.')
42            jQuery('#admin-login-button').html('<a id="remove_link" href="">Remove this city\'s FB account</a>')
43            jQuery('#remove_link').click(function(){
44                jQuery.get('/admin/remove_facebook_token', {
45                    location: location
46                });
47            });
48        })
49    }
50    console.log(session)
51};

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.