# Facebook Integration

**URL:** <https://forum.mautic.org/t/facebook-integration/2908>\
**Category:** Development\
**Created:** [December 4, 2015, 8:59am UTC](https://forum.mautic.org/t/facebook-integration/2908 "2015-12-04T08:59:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![presita](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@presita](https://forum.mautic.org/u/presita)\
**Post date:** [December 4, 2015, 8:59am UTC](https://forum.mautic.org/t/facebook-integration/2908/1 "2015-12-04T08:59:30Z")

</div>

How to integrate mautic facebook plug-in in custom bundle  
  
or any method to integrate facebook with form that contents name, description or image field  
  
and post this details to facebook wall.

---

<div class="post-metadata">

**Author:** ![presita](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@presita](https://forum.mautic.org/u/presita)\
**Post date:** [December 4, 2015, 8:59am UTC](https://forum.mautic.org/t/facebook-integration/2908/2 "2015-12-04T08:59:30Z")

</div>

How to integrate mautic facebook plug-in in custom bundle  
or any method to integrate facebook with form that contents name, description or image field  
and post this details to facebook wall.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [December 4, 2015, 9:39am UTC](https://forum.mautic.org/t/facebook-integration/2908/3 "2015-12-04T09:39:40Z")

</div>

You can either:

1. Extend the existing Facebook plugin with the new functionality, send the PR to the Mautic GitHub repo and provide the new feature to the community.
2. Copy the existing Facebook plugin, extend it with your new functionality and do whatever you want with it. (use by yourself, sell it, provide it for free, …)

---

<div class="post-metadata">

**Author:** ![presita](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@presita](https://forum.mautic.org/u/presita)\
**Post date:** [December 4, 2015, 10:57am UTC](https://forum.mautic.org/t/facebook-integration/2908/4 "2015-12-04T10:57:10Z")

</div>

Thanks  
But, if we want to use mautic facebookintegration of plugins folder to my custom bundle than how i use of it.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [December 4, 2015, 11:06am UTC](https://forum.mautic.org/t/facebook-integration/2908/5 "2015-12-04T11:06:43Z")

</div>

You can use object oriented programming and inherit classes from the core plugin or, as I wrote before, you can copy the code from the core Facebook plugin to your plugin. Both ways have their advantages:

Inherit some classes  
(+) Reusing an existing code is a good practice  
(+) Your code base will be smaller, better maintainable  
(+) If some improvement will be made in the core plugin, you plugin will be improved as well  
(-) Your plugin can break if the core plugin changes something

Copy existing classes to your plugin  
(+) You will have the code under control  
(+) Your plugin won’t be dependent on the core plugin  
(-) Some methods will be duplicated \> bigger file size, worse maintenance  
(-) If some improvement will be made in the core plugin, your plugin won’t get it

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:56pm UTC](https://forum.mautic.org/t/facebook-integration/2908/6 "2020-02-02T22:56:40Z")

</div>


