Monthly Archives: January 2014

Sandvox and the Facebook like button

Adding a sharing bar in Sandvox is simple but for some reason, when doing so for my music page it didn’t work getting the Facebook like button to show up. All the other buttons did, but not that one (and I do have a valid App-ID).

After a lot trying and failing I tried to simply make a ”Like” button using the Facebook tools: https://developers.facebook.com/docs/plugins/like-button/

 

Paste this (or rather what the above mentioned site suggests) after your body tag with code injection and it all just works 🙂

<div id="fb-root"></div><script>(function(d, s, id) {  
var js, fjs = d.getElementsByTagName(s)[0];  
if (d.getElementById(id)) return;  
js = d.createElement(s); 
js.id = id;  js.src = "//connect.facebook.net/sv_SE/all.js#xfbml=1&appId=YOUR-APPID-HERE";
fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));
</script>

 I don’t know why I needed to do this. Might be a bug in Sandvox, or just me doing something wrong. Anyway. This solved the problem..

 

Music is moving out

My music hobby is moving out from this site. As this page is generally about anything I feel like, I want it to be quite rarely updated with things I like to write about or some programming thingy I’m trying but the music stuff is taking overhand. Therefore http://sverrirv.com har been created for the music stuff.. So here will be a quiet place for my other nerdy endeavors..