Mobile Sites: Facebook Like button

What method do you use for the functionality of the Facebook Like button for your mobile websites?

On desktop computers, I used the following:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:like href="websiteurl" show_faces="true" layout="button_count"></fb:like> 

However, this depends on the downloadable JavaScript libraries, which can be problematic for some mobile devices, especially because the Facebook JavaScript library is quite large, and we try to keep the site size to a minimum.

Another option is to use iframe functionality, which seems to be the best way to handle it, however some mobile devices do not support iframe.

We support the following: iPhone Android Blackberry Windows Mobile

Thus, you can use as many of these devices as possible. I'm starting to think that iframes are the best way to handle this, but I'm not sure how much it is supported across all the devices above.

Thank you all

+4
source share
2 answers

Unfortunately, there is no great way to do this right now. Facebook is working on it, but there is no schedule to launch.

0
source

Source: https://habr.com/ru/post/1335123/


All Articles