<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Social media share buttons in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140964#M4633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to use sharethis and addthis code straight from their sites but didn't have any luck...not to say it can't be done...I'm just not an expert.&amp;nbsp; I did, however, manage to get something working, I placed three icons (twitter, facebook, and linkedin) on my map and referenced these functions when clicked...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public function twitter():void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/twitter/offer?url=http://www.xxxxxxxxxxx.com"), "_blank"); &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; public function facebook():void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/facebook/offer?url=http://www.xxxxxxxxxx.com"), "_blank"); &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; public function linkedin():void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/linkedin/offer?url=http://www.xxxxxxxx.com/"), "_blank"); &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code for the icon looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;s:Image&amp;nbsp; id="myFxImage" source="assets/images/twitter.png"&amp;nbsp; alpha="0.7" click="twitter()"&amp;nbsp;&amp;nbsp; mouseOver="onImageMouseOver()" mouseOut="onImageMouseOut()"/&amp;gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;s:Image&amp;nbsp; id="myFxImage2" source="assets/images/facebook.png"&amp;nbsp; alpha="0.7" click="facebook()"&amp;nbsp;&amp;nbsp; mouseOver="onImageMouseOver2()" mouseOut="onImageMouseOut2()"/&amp;gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;s:Image&amp;nbsp; id="myFxImage3" source="assets/images/linkedin.png"&amp;nbsp; alpha="0.7" click="linkedin()"&amp;nbsp;&amp;nbsp; mouseOver="onImageMouseOver3()" mouseOut="onImageMouseOut3()"/&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe not the perfect way to do it but it posts the link to their walls...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2012 10:54:13 GMT</pubDate>
    <dc:creator>philippschnetzer</dc:creator>
    <dc:date>2012-11-19T10:54:13Z</dc:date>
    <item>
      <title>Social media share buttons</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140963#M4632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wish to put Facebook, Twitter and Pinterest 'share' buttons on a flex based web mapping application that I am building.&amp;nbsp; Do I need a special widget for that, or can I use code from places like sharethis.com, or addthis.com?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not want to do anything other than allow the user to click the button for the social media platform they want, and share/pin/tweet the link to the website on their wall.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140963#M4632</guid>
      <dc:creator>MarkLecher</dc:creator>
      <dc:date>2012-11-16T16:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Social media share buttons</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140964#M4633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to use sharethis and addthis code straight from their sites but didn't have any luck...not to say it can't be done...I'm just not an expert.&amp;nbsp; I did, however, manage to get something working, I placed three icons (twitter, facebook, and linkedin) on my map and referenced these functions when clicked...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public function twitter():void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/twitter/offer?url=http://www.xxxxxxxxxxx.com"), "_blank"); &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; public function facebook():void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/facebook/offer?url=http://www.xxxxxxxxxx.com"), "_blank"); &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; public function linkedin():void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/linkedin/offer?url=http://www.xxxxxxxx.com/"), "_blank"); &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code for the icon looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;s:Image&amp;nbsp; id="myFxImage" source="assets/images/twitter.png"&amp;nbsp; alpha="0.7" click="twitter()"&amp;nbsp;&amp;nbsp; mouseOver="onImageMouseOver()" mouseOut="onImageMouseOut()"/&amp;gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;s:Image&amp;nbsp; id="myFxImage2" source="assets/images/facebook.png"&amp;nbsp; alpha="0.7" click="facebook()"&amp;nbsp;&amp;nbsp; mouseOver="onImageMouseOver2()" mouseOut="onImageMouseOut2()"/&amp;gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;s:Image&amp;nbsp; id="myFxImage3" source="assets/images/linkedin.png"&amp;nbsp; alpha="0.7" click="linkedin()"&amp;nbsp;&amp;nbsp; mouseOver="onImageMouseOver3()" mouseOut="onImageMouseOut3()"/&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe not the perfect way to do it but it posts the link to their walls...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 10:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140964#M4633</guid>
      <dc:creator>philippschnetzer</dc:creator>
      <dc:date>2012-11-19T10:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Social media share buttons</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140965#M4634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much.&amp;nbsp; This is great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 14:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140965#M4634</guid>
      <dc:creator>MarkLecher</dc:creator>
      <dc:date>2012-11-28T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Social media share buttons</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140966#M4635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In case anyone is interested....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;found a much easier and better way of doing this...just use Robert's LinkWidget and create an entry for each site you want to share to, include a custom icon as well, and just set the url in the LinkWidget.xml's to these:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;TWITTER http://api.addthis.com/oexchange/0.8/forward/twitter/offer?url=http://www.yourdomain.com/

FACEBOOK http://api.addthis.com/oexchange/0.8/forward/facebook/offer?url=http://www.yourdomain.com/

LINKEDIN http://api.addthis.com/oexchange/0.8/forward/linkedin/offer?url=http://www.yourdomain.com/&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/social-media-share-buttons/m-p/140966#M4635</guid>
      <dc:creator>philippschnetzer</dc:creator>
      <dc:date>2021-12-11T07:46:22Z</dc:date>
    </item>
  </channel>
</rss>

