Facebook Integration

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.

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.

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, …)

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

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