# Facebook整合:
*****
*****
利用官方插件:https://github.com/facebookincubator/facebook-for-magento2
[Facebook Business Extension (magento.com)](https://marketplace.magento.com/facebook-facebook-for-magento2.html)
*****
文档:[FBE Magento Manual Final (Approved 04/13/21)](https://marketplace.magento.com/media/catalog/product/facebook-facebook-for-magento2-1-4-2-ce/user_guides.pdf)
## 基本功能:
## 1. 刊登商品到Facebook,然后可以投放广告。
Your product catalog is automatically uploaded to Facebook after the integration setup is completed. After that, whenever a product is being edited or deleted, changes will be automatically synced to Facebook. You can also make an additional push of the full catalog at **Stores -> Configuration -> Facebook -> Business Extension -> Catalog Management -> Push Products**
![](https://img.kancloud.cn/0d/3c/0d3c6841bbd07ffa146f87e2357055cd_784x437.png)
刊登商品,数据同步后,进入facebook后台看看
![](https://img.kancloud.cn/4d/ad/4dad71d5f95fdd2691bda8d0e5cd9f5b_720x451.png)
### dynamic ads:
Uploading your product catalog to Facebook allows you to use dynamic ads.
*****
## 2. Facebook pixel 跟踪像素功能。
Pixel Installer Installing the Facebook pixel allows you to access the following features:
● Conversion tracking: See how successful your ad is by seeing what happened as a direct result of your ad (including conversions and sales).
● Optimization: Show your ads to people most likely to take a specific action after clicking on them, such as adding an item to their cart or making a purchase.
● Remarketing: When people visit your website, reach them again and remind them of your business with an ad on Facebook.
● 基于插件,自定义事件埋点
## 3,店铺功能 Facebook Shops and Instagram Shopping
![](https://img.kancloud.cn/93/99/939966eb9f0b41ec7f6fd25a0a3281c2_618x491.png)
*****
*****
## 关于pixel问题,
网站做好之后,一个重要的事情就是要进行推广,投放广告。而为了追踪广告的效果,衡量广告的ROI,就需要在网站上安装各种各样的代码,检测用户的行为事件,以及最终生成了多少订单。这么一个流程,就需要配合各大广告平台安装对应的代码,而facebook的像素,就是其中一个很重要的部分。
浏览器安装 Facebook Pixel Helper 插件,方便检查pixel是否正常上传事件。
注意:
pixel不能上传数据,解决方法:
![](images/screenshot_1637569329226.png)
[FB事件报错?解决办法在这里!|facebookpixel|dns|服务器|verification|域名解析|pixel (qq.com)](https://xw.qq.com/cmsid/20210205A08HF400)
[【Facebook 重大改动】你的FB Pixel也被停用了?赶紧这样做…… - 知乎 (zhihu.com)](https://zhuanlan.zhihu.com/p/349411889)
![](images/screenshot_1637569248256.png)
然后pixel测试就正常了:
![](images/screenshot_1637569992009.png)
## 关于feed问题,
## 关于Facebook广告, ads ,
[一文看懂Facebook广告 | 新手入门帖 (qq.com)](https://mp.weixin.qq.com/s/qzZ04HA1kxLp-qSM-C58Lg)
## 关于Facebook Messenger:
Facebook Messenger,客服即时沟通
Use `Facebook Messenger` to chat with customers on your store or Facebook easily.
[Magento 2 Facebook Messenger - response messages instantly (magenest.com)](https://store.magenest.com/magento-2/facebook-messenger.html)
聊天机器人:Messenger chatbot
# Facebook数据应用
广告数据获取:
1,facebook api
[图谱 API 参考 v12.0:Ads Insights (facebook.com)](https://developers.facebook.com/docs/marketing-api/reference/ads-insights/)
2,supermetrics
[The easiest way to move Facebook Ads data – Supermetrics](https://supermetrics.com/connectors/facebook-ads)
![](images/screenshot_1637667503641.png)
## supermetrics 怎么用?
1,新建 google sheets
2,安装插件 https://supermetrics.com/
![](https://img.kancloud.cn/ec/54/ec5405d06b513a594c2dcf87aca47b13_680x365.png)
3,配置需要的数据: 维度+指标
![](https://img.kancloud.cn/79/66/7966adcee52ae9948031944ff2d747e3_369x526.png)
![](https://img.kancloud.cn/c7/29/c7299363663bde5190f2d34aaa247a66_342x428.png)
4,抓取数据 / 设置 定时抓取数据