diff --git a/MapTour/package.json b/MapTour/package.json index 63ccd61..0a71470 100644 --- a/MapTour/package.json +++ b/MapTour/package.json @@ -1,6 +1,6 @@ { "name": "StorytellingMapTour", - "version": "2.5.0", + "version": "2.5.1", "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-clean": "~0.4.0", diff --git a/MapTour/src/app/storymaps/ui/header/Header.js b/MapTour/src/app/storymaps/ui/header/Header.js index e4233eb..87df383 100644 --- a/MapTour/src/app/storymaps/ui/header/Header.js +++ b/MapTour/src/app/storymaps/ui/header/Header.js @@ -208,28 +208,14 @@ define(["storymaps/ui/inlineFieldEdit/InlineFieldEdit", function shareFacebook() { - var options = '&p[title]=' + encodeURIComponent($(selector + ' #headerMobile .title').text()) - + '&p[summary]=' + encodeURIComponent($(selector + ' #headerMobile .subtitle').text()) - + '&p[url]=' + cleanURL(document.location.href); + var url = cleanURL(document.location.href); if ( $(this).hasClass("disabled") ) { return; } - - var counter = 0; - // TODO: make multiple images works - /*if ($("meta[property='og:image']").attr("content")) { - options += '&p[images][' + counter + ']=' + encodeURIComponent($("meta[property='og:image']").attr("content")); - counter++; - }*/ - - $(".carousel-item-div img").slice(0, 1).each(function(i, img){ - options += '&p[images][' + counter + ']=' + encodeURIComponent($(img).attr('src')); - counter++; - }); window.open( - 'http://www.facebook.com/sharer.php?s=100' + options, + 'http://www.facebook.com/sharer/sharer.php?u=' + url, '', 'toolbar=0,status=0,width=626,height=436' ); diff --git a/MapTour/src/index.html b/MapTour/src/index.html index d0d3bc4..c6eda4b 100644 --- a/MapTour/src/index.html +++ b/MapTour/src/index.html @@ -16,6 +16,7 @@ To correctly reference your Map Tour in search engine: - create and fill out extensively an ArcGIS.com item that link to your final application - edit the following four tags as well as the upper title tag on line 4 + - see https://developerscorner.storymaps.arcgis.com/grow-your-story-maps-audience-with-open-graph-tags-b7639cb65d5c --> @@ -69,7 +70,7 @@