Q&A: Facebook library in prestashop modules, what is this?


Dear Milos,
Could you be so kind and tell me what is facebook library? Where should I find it? And how should I add it to my web store? Thank you in advance.

PrestaShop expert answer

Facebook library is a special .js file developed by facebook and it must be included to website, where you can use some facebook plugins. Facebook modules that create some kind of "widgets" must use facebook library directly from facebook site - only then these modules will work properly.

If you use several facebook modules - its not necessary to load this library for each of them. It will be enough to load only one library - all modules will use it.  If you will use several libraries at the same time - this can generate some conflict between these libraries + it affects shop performance (because of redundancy)

How to find it?
if you use some other facebook module - this usually means that it includes the fb library. Usually, unfortunately, developers of these modules dont follow the facebook guidelines and include library that is not associated with your domain (its dangerous!).
An easiest way to check if your websie already uses the facebook library is:
1) open your shop page
2) press ctrl+U (view page source)
3) search there for "connect.facebook"
4) if you will see there something like: sdk.js / all.js - this means that your website already uses facebook library

Share on Google Plus


This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment


Post a Comment