Facebook Publisher is the skeleton of a system to cross publish content from a WebGUI site onto Facebook pages. An example workflow activity is given that publishes a title, link, and synopsis to Facebook every time a new thread is started in a Collaboration System. However, this could also be directly integrated into assets, command line utilities, or into other workflow activities. It could be made to publish photos, calendar entries, or really anything to Facebook.
Install Instructions
1) Install Facebook::Graph on your server.
2) Create your app using developers.facebook.com/apps.
3) Copy FacebookPublisher.pm into lib/WebGUI/Content and FacebookThreadPoster.pm into lib/WebGUI/Workflow/Activity.
4) Add a setting:
insert into settings values ('facebookPublisherAccessToken','');
5) Insert "FacebookPublisher" into the contentHandlers list in your config file just before "Asset".
6) Insert "WebGUI::Workflow::Activity::FacebookThreadPoster" into workflowActivities in the "WebGUI::VersionTag" section.
7) Add a new section to your config file using your Facebook App information:
"facebookPublisher" : {
"appId" : "",
"secret" : ""
},
8) Restart modperl.
9) Visit this URL to configure Facebook with WebGUI.
http://www.yoursite.com/:facebook
10) Create a workflow using Facebook Thread Poster.
11) Assign it to a CS.
12) From then on when someone starts a thread, it will get posted to Facebook.
NOTE: This could be used to do so much more. The one workflow activity should be looked at as an example. It could just as easily be posting calendar events, story manager stories, etc.