Facebook "Like" added to Ob2VR asset?

Q&A about the latest versions
Post Reply
rjdesignonline
Posts: 28
Joined: Thu Mar 01, 2012 11:04 am

I'd like to add "Facebook "Like" HTML5 code to OB2VR asset. Facebook generates the code with some simple directions which I do not understand, can you assist?...

"Incl JavaScript SDK on your page once, ideally right after the opening <body> tag." (huh?)
<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/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Place the code for your plugin wherever you want the plugin to appear on your page.
<div class="fb-like" data-href="http://rjdesignonline.com/_VR/Keeley_Ph ... index.html" data-send="true" data-width="50" data-show-faces="true" data-font="verdana"></div>


Thank-you, -R-
User avatar
Hopki
Gnome
Posts: 13027
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply