The Facebook Connector using Custom Object Stores

In a previous post, I provided a demo on how to use the Facebook Connector. Here, I describe briefly how you can use your own custom object store to save the access token rather than relying on the Connector’s default object store.

To enable your custom object store, you only need to add an element within the Facebook config that refers to the object store, as shown below:

Through this configuration, the Connector can save to, and retrieve from the custom object store automatically without any modification to the rest of your flow.

Note that in the above flow an in-memory object store is configured. Since this object store is in memory, it will be lost if the Mule application is shut down. In this case, the application will have to go through the authorization step again when restarted.

The type of object store that you would use is highly dependent on your application. However, it is suggested that you use a persistent one to cater for scenarios where the application unexpectedly stops. You can find out more about object stores in this documentation page.

(This blog post first published; 15th April 2014 on blog.ricston.com)

If you enjoyed this post, make sure you subscribe to our RSS feed!
This entry was posted in Mule. Bookmark the permalink.

5 Responses to The Facebook Connector using Custom Object Stores

  1. I am regular visitor, how are you everybody? This
    paragraph posted at this website is genuinely good.

  2. Facebook users will find many Android, Apple and mobile web apps in the App Center.
    Blu-ray Deal of the Week: RVBX: Ten Years of Red vs.
    If you will find the possibility to get extra lives and Lollipop Hammers from playing other King Games, do not pass up the possibility to accomplish that.

  3. It’s very simple to find out any matter on web as
    compared to books, as I found this post at this website.

  4. Asking questions are genuinely pleasant thing if you are not understanding anything totally, but this piece of writing provides fastidious understanding yet.

    My web site United States Senate

  5. ministerial says:

    My brother recommended I might like this blog. He used to be totally right.
    This post truly made my day. You can not imagine just how much time I had spent for
    this info! Thanks!

    Here is my homepage – ministerial

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Add video comment