ATG On Social Network FaceBook/Twitter Integration

How about using social networking sites as a channel to sell our
products ?

Yes,we can share the Product/Sku Infromation  to any social networking sites. So anybody interested can access the URL and see the Products/Skus,Browse Catalogs and place orders through this channel

I have successfully integrated our code with the  below social networking sites.



This can be done basically by posting a link to Twitter or FaceBook and upon clicking the URL,this will redirect you back to the Product Catalog page of your Site.

ATG FaceBook Integration

I registered the URL with tinyUrl(,as this option helps to cut short  big URL to  rather simpler one.

Below is the code snippet.
You just need to place this in your JSP files,dont forget to
create the image file for this.

<a target="_blank" href=

  url=${tinyUrl}" onclick=",'','toolbar=0,
  resizable=yes, scrollbars=yes,
 status=0,width=600, height=430' );return false;">
  <img title="Add to Facebook" alt="Facebook" 
  style="width: 14px; height: 14px; border:0"> 

You can add your custom message in the text box provided above,
the message and the link will be posted to your wall after
clicking the 'Share Link' button

ATG Twitter Integration    
<a target="_blank" href="${tinyUrl}"
 onclick=",'','toolbar=0, resizable=yes,
  scrollbars=yes,status=0, width=600, height=300' );return false;">
  <img title="Tweet this" alt="Twitter" src="images/twitter.gif"
  style="border:0" />

For Dynamically generate tinyUrl from your application,create a droplet and set the value tinyUrl in the request parameter.

Make sure you have the necessary ports opened to access the website URL.


URL url = new URL("" + origUrl);
URLConnection connection = url.openConnection(); 
....Read the Generated tiny URL through BufferedReader and
set it to request parameter as below.
pRequest.setParameter("tinyUrl", tinyUrl);
pRequest.serviceLocalParameter("output", pRequest, pResponse);

FaceBook Sharer Image

Facebook Sharer Popup Page


FeAr OnLy To StAnD aLoNe.... said...

Have you integrated the fb login functionality in ATG application?
I am using the facebook sdk for taht but unable to connect this login functionality with atg profile.
As a result if user id logged in as facebook credential his session is not remain same till end.

Sebastian said...

Nope,i have integrated only the share functionality through which we can share the Product/Sku information.

SEO Moz said...

thnx for the information..
blog is really gud,Help my india is the World Best Forum and Blogging Site which provides the all category of forum and blogging and Social Community site.

Political Forum Site

Post a Comment

Related Posts Plugin for WordPress, Blogger...