I have created a website that has social networking 'likes' etc and have included a Facebook Like button using the js version of the code.
It all works fine on PC in IE/Chrome/Safari but the Like button does not show when the website is accessed using Safari on an iPhone. The code in the page is as follows:
(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 = "http://connect.facebook.net/en_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}
(document, 'script', 'facebook-jssdk'));
inside a <script>
tag within <body>
and:
id="FacebookLike" class="fb-like" data-href="www.tri-rn.com" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-colorscheme="dark" data-font="trebuchet ms"
inside a <div>
tag.
Is there something else I need to add to my code to enable Safari iOS to be able to display the Like button?
The website this is used on is http://www.tri-rn.com
Any help will be gratefully received and used!
您可能已在iPhone设置中打开了私人浏览。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.