View difference between Paste ID: q63Nixq7 and LbFRKTGi
SHOW: | | - or go back to the newest paste.
1
AutoGrow() on facebook page tab - Vertical only
2-
<script>
2+
<script>
3-
window.fbAsyncInit = function () {
3+
window.fbAsyncInit = function () {
4-
    FB.init({appId: 'APP ID HERE', status: true, cookie: true,
4+
    FB.init({appId: '599920186736332', status: true, cookie: true,
5-
         xfbml: true});
5+
         xfbml: true});
6-
        FB.Canvas.setAutoGrow(); //set size according to iframe content size           
6+
        FB.Canvas.setAutoGrow(); //set size according to iframe content size           
7-
    };
7+
    };
8-
8+
9-
    (function () {
9+
    (function () {
10-
10+
11-
        var e = document.createElement('script');
11+
        var e = document.createElement('script');
12-
12+
13-
        e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
13+
        e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
14-
14+
15-
        e.async = true;
15+
        e.async = true;
16-
16+
17-
        document.getElementById('fb-root').appendChild(e);
17+
        document.getElementById('fb-root').appendChild(e);
18-
18+
19-
    } ());
19+
    } ());
20
</script>