MAIN arrow Samples-5.1 arrow Facebook integration

Facebook integration

Print E-mail

This sample shows how to contact the Intalio Facebook integration service.

 


facebook_integration_result_facebook.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


To use this sample, you will need to register to the Intalio Facebook application .

The full sample is available here: Facebook integration .

 

facebook_integration_schema_view.png

This application receives messages through a web service and interprets the data as follows:facebook_integration_bpmn_model.png

 

  • the field name is used for the name of the sender.

 

  • the field message is used for the message itself.

 

  • the field isPublic is a boolean field that triggers the publication of the message to the Facebook application.

 

  • the field jabberAddress represents an optional Jabber address to which the message should be sent. The service will use the Jabber id to send messages. You will need to accept this address when it first tries to contact you before you can receive messages from it.

 

  • the field twitterLogin is an optional string that represents a twitter login to which may be sent a message. To enable the reception of such messages, you will first need to follow intalio on twitter. The user intalio will send you a direct message.

 

The structure of the message is shown in its schema on the left.

 

You may create a simple process that will send a message to the service (see the process on the right and the fb_ping.bpm example). Please note that the ping task is copying the initialization message into its outgoing message variable to send it to the service.

 

To try the service, import the project into your workspace (by doing a right-click on the process explorer, then selecting Import>Existing projects into workspace, and selecting the archive file), then deploy it to your server.

 

Once it is deployed, log in to the server (by default the credentials are u:admin, p:changeit on http://localhost:8080/bpms-console), and start the process.

 

A dialog box should appear to fill in the data needed for the Facebook service.

facebook_integration_starting_the_process.png

Just fill it and hit the OK button.

 

Quite immediately, you should this appear, and the message will appear in the Facebook application:

 

facebook_integration_showing_the_twitter_and_jabber_notifications.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Last Updated ( Nov 29 2007 )
  < Prev Next >