Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Facebook integration plugin

I have created a Facebook integration plugin that allows customers to create tickets by sending messages to a Facebook page. When the staff answers the response will be posted back to Facebook so the customer never has to leave Facebook.

This is an early version which needs more testing and not really ready for production. If anyone is interested in testing and/or developing this further, please let me know.

This has been implemented as a pure plugin, no core files has been modified. With that said there are some things that could be changed upstream to make this even better.
Wishlist for upstream changes:
  • The sources for tickets are hardcoded. So tickets from Facebook can only have the source "Api" or "Other". I would be nice to have these dynamic so it could say "Source: Facebook"
  • To post responses back to Facebook I tap into the signal "model.created". Even though this work, it would be nice to have a proper way of creating new ticket sources in plugins.
Todo for this plugin:
  • To get this plugin to work you need to specify some Facebook tokens and other ids which is not so user friendly. A better way of setting it up would be nice
  • To set the help topic you need to specify the raw help id. A dropdown would be nicer.
  • No paging is implemented. If there is more new content to be fetched between polls to Facebook, than returned in one request, they might be lost.
Find the code in the facebook-branch here:
Tagged:

Comments

  • Wow, great to see plugin system is used more and more even though it's not fully integrated/finished yet!

    Personally I'm not interested in a Facebook plugin, but I'm sure there might be some others interested in this ;)
  • Very interested in working on getting this implemented.. currently using 1.10 rc2 and it does not work.. gives a 500 server error after installing the plugin. I do get a plugin installed correctly message but after that trying to navigate to any other page completely crashes the system.

    any idea what could be wrong or what needs to be changed for it to be compatible with this version?
  • You need to get the error message from your webserver to figure out what is wrong.
    Please note that this has only been tested in 1.9.12
  • Here are the screen shots that were produced installing the plugin.

    It says installed correctly, then shows a 500 server error when refreshing the page
    Checked the Cpanel error log and its empty
    Checked the database and the tables were not created

    The log file inside of OSTicket was full of several errores from testing so I emptied it before installing the plugin and after I installed it the log was still empty.

    Not sure where else I should look for errors to be shown?
    errors.zip
    63K
Sign In or Register to comment.