annotate gpp/templates/core/social_sharing_begin.html @ 507:8631d32e6b16

Some users are still having problems with the pop-up login. I think they are actually getting 403s because of the CSRF protection. So I have modified the base template to always have a javascript variable called csrf_token available when they aren't logged in. The ajax_login.js script was then modified to send this value with the ajax post. Fingers crossed.
author Brian Neal <bgneal@gmail.com>
date Sun, 04 Dec 2011 03:05:21 +0000
parents 7dbdbb08e68c
children
rev   line source
bgneal@490 1 <div id="fb-root"></div>
bgneal@491 2 <script type="text/javascript">(function(d, s, id) {
bgneal@490 3 var js, fjs = d.getElementsByTagName(s)[0];
bgneal@490 4 if (d.getElementById(id)) {return;}
bgneal@490 5 js = d.createElement(s); js.id = id; js.async = true;
bgneal@490 6 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
bgneal@490 7 fjs.parentNode.insertBefore(js, fjs);
bgneal@490 8 }(document, 'script', 'facebook-jssdk'));</script>