/** Share the data by using FB. */ private void onFbShareEvent() { MixpanelUtil.Click_On_FaceBook(); if (AppClientFactory.getCurrentPlaceToken().equals(PlaceTokens.PROFILE_PAGE)) { if (socialDo.getIsSearchShare()) { triggerShareDataEvent(PlayerDataLogEvents.FACEBOOK, false); SocialShareView.postOnFacebook( socialDo.getTitle(), socialDo.getRawUrl(), description, categoryImage.getUrl()); // Window.open( // "http://www.facebook.com/sharer/sharer.php?s=100&p[url]=" // + socialDo.getRawUrl() + "&p[images][0]=" // + socialDo.getThumbnailurl() + "&p[title]=" // + socialDo.getTitle().replaceAll("\\+", "%2B") + "&p[summary]=" + description, // "_blank", "width=626,height=436"); } else { triggerShareDataEvent(PlayerDataLogEvents.FACEBOOK, false); String title = i18n.GL1995() + " " + i18n.GL1433(); String token = Window.Location.getHref(); SocialShareView.postOnFacebook( title, socialDo.getRawUrl(), getAsHtml(description) + " " + token, categoryImage.getUrl()); // Window.open( // "http://www.facebook.com/sharer/sharer.php?s=100&p[url]=" // +socialDo.getRawUrl() + "&p[images][0]=" // + socialDo.getThumbnailurl() + "&p[title]=" // + "Check out "+socialDo.getTitle().replaceAll("\\+", "%2B")+" on Gooru" + // "&p[summary]=" + description, // "_blank", "width=626,height=436"); } } else { triggerShareDataEvent(PlayerDataLogEvents.FACEBOOK, false); SocialShareView.postOnFacebook( socialDo.getTitle(), socialDo.getRawUrl(), description, categoryImage.getUrl()); // Window.open( // "http://www.facebook.com/sharer/sharer.php?s=100&p[url]=" // + socialDo.getRawUrl() + "&p[images][0]=" // + socialDo.getThumbnailurl() + "&p[title]=" // + socialDo.getTitle().replaceAll("\\+", "%2B") + "&p[summary]=" + description, // "_blank", "width=626,height=436"); } }