Bug 793971 (JBEPP-1044) - facebook integration proof of concept
Summary: facebook integration proof of concept
Keywords:
Status: CLOSED WONTFIX
Alias: JBEPP-1044
Deadline: 2011-10-27
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: unspecified
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 6.0.x
Assignee: Tomas Kyjovsky
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard: EPP_6_0_0_Candidate
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-01 18:58 UTC by Prabhat Jha
Modified: 2013-11-05 00:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-24 12:07:20 UTC
Type: Feature Request


Attachments (Terms of Use)
OneColumnCLVTemplate.gtmpl (5.19 KB, application/octet-stream)
2011-08-01 20:59 UTC, Peter Larsen
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1044 0 Major Closed facebook integration proof of concept 2015-07-30 13:03:23 UTC

Description Prabhat Jha 2011-08-01 18:58:56 UTC
project_key: JBEPP

Please work with plarsen . He has partly working bits.

Comment 1 Peter Larsen 2011-08-01 20:54:49 UTC
The concept is straight forward; I'm following the same guidelines anyone with a blog or news-site would follow to add the social sharing abilities to a site. Luckily these are functions that are well published and there are several services which creates a full management interface for you. 

For my test, I choose http://www.addthis.com/. They have an extensive API and lots of customization available, while keeping the basics straight forward and un-complicated.

Please note, that this requires a web-user to click on items to be shared; the users uses his/hers credentials on the social media sites to publish the story. This is NOT an automated posting when someone creates a published item in SP.

Comment 2 Peter Larsen 2011-08-01 20:57:31 UTC
I added the following to the OneColumnCLVTemplate.gtmpl which is used by te content-list-viewer to show our news stories in the WCM demo. The "right" way would probably be to create a new template/item and have a check-box where the user can choose if they want a specific item to be publishable. But for my proof of concept, every item is going to be sharable to facebook, twitter and a bunch of other sites:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">
  var addthis_share =
  {
    url: $itemLink
    title: $itemName
    description: $itemSummary
  }
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e0f39ec0a02425b"></script>

See uploaded template for specific location.

Comment 3 Peter Larsen 2011-08-01 20:59:14 UTC
deploy/gatein-wcm-extension-2.1.2.ear/ecm-wcm-extension.war/WEB-INF/conf/wcm-artifacts/application-templates/content-list/viewer/list/OneColumnCLVTemplate.gtmpl

Comment 4 Peter Larsen 2011-08-01 20:59:14 UTC
Attachment: Added: OneColumnCLVTemplate.gtmpl


Comment 5 Peter Larsen 2011-08-01 21:00:30 UTC
Issue - I can only get the changed template "discovered" if I change it before I start SP for the first time. I've looked in the administration console, but this specific template is not to be found?? I need a way to change the groovy template without having to clear all of SitePublisher.

Comment 6 Peter Larsen 2011-08-01 21:02:10 UTC
With the code change, each item is rendered with a list of sharing buttons. Click on facebook (F) and you share it with facebook with the summary as the post comment. All of the details can be customized to Nth degree with "addthis" API settings. A lot more details about the ability of the API at https://www.addthis.com/help/client-api.


Comment 8 Jared MORGAN 2011-11-16 04:06:40 UTC
Release Notes Docs Status: Added: Not Yet Documented


Comment 9 hfnukal@redhat.com 2012-01-16 14:16:27 UTC
Labels: Added: EPP_6_0_0_Candidate



Note You need to log in before you can comment on or make changes to this bug.