Update Facebook SDK
Premium sports magazine Joomla template with clean, easy to customize and unique design.
- GK User
- Wed Dec 17, 2014 8:28 pm
I need to replace the code to load the Facebook SDK at the begining the <body> tag, the code that I need to replace is:
I need to replace all that with this new SDK version:
Can't find the place in the code where this code is inserted.
- Code: Select all
<!-- Facebook SDK -->
<div id='fb-root'></div>
<script type='text/javascript'>
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = '//connect.facebook.net/es_ES/all.js';
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
<!-- End Facebook SDK -->
I need to replace all that with this new SDK version:
- Code: Select all
<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/es_LA/sdk.js#xfbml=1&appId=376555629176896&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Can't find the place in the code where this code is inserted.
-

- Junior Boarder
- GK User
- Wed Dec 17, 2014 9:25 pm
It can be found in 2 files:
components/com_k2/templates/default/item.php (which is a default k2 item view file)
/templates/gk_league_news/html/com_k2/templates/default/item.php (which is our owerrite of a default k2 item view file)
components/com_k2/templates/default/item.php (which is a default k2 item view file)
/templates/gk_league_news/html/com_k2/templates/default/item.php (which is our owerrite of a default k2 item view file)
-

- Moderator
- GK User
- Mon Jan 19, 2015 4:13 pm
I tried this and the button still doesnt work?
I updated using the facebook advance javascript in my template of bike store as you mention above (i don't use k2store but still use k2) - I entered my API code where it had asked for it, what could be the problem?
http://www.hydromarket.co.uk
Regards, Jay.
I updated using the facebook advance javascript in my template of bike store as you mention above (i don't use k2store but still use k2) - I entered my API code where it had asked for it, what could be the problem?
http://www.hydromarket.co.uk
Regards, Jay.
-

- Senior Boarder
- GK User
- Wed Jan 21, 2015 8:52 am
Could you please create a screenshot and mark problematic button on it?
-

- Moderator
- GK User
- Wed Jan 21, 2015 2:47 pm
-

- Senior Boarder
- GK User
- Fri Jan 23, 2015 5:14 pm
Are you sure you did everything exactly as described here:
https://www.gavick.com/documentation/un ... ok-feature
?
https://www.gavick.com/documentation/un ... ok-feature
?
-

- Moderator
- GK User
- Sun Jan 25, 2015 12:26 am
100% and I proof read this page 3-4 times as it is now driving me crazy that this won't work..
-

- Senior Boarder
- GK User
- Mon Jan 26, 2015 5:08 pm
Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
-

- Moderator
- GK User
- Mon Jan 26, 2015 11:53 pm
Hi, this got sorted yesterday, only just got back, it was old code in the old plugin I was updated. Thankyou for your attention.
-

- Senior Boarder
- GK User
- Tue Jan 27, 2015 6:51 pm
Ok. Thanks for the info.
Please let me know if you would have any additional questions regarding this topic.
Please let me know if you would have any additional questions regarding this topic.
-

- Moderator
10 posts
• Page 1 of 1
