locked
share images on facebook and twitter

    Question

  • Hai,

        In my application i need to share images on facebook , twitter and email,i can share images on email using share charm.please suggest me how to do share on facebook and twitter,people app shares only link not an image

    Friday, February 28, 2014 4:26 AM

Answers

  • Try sharing from the Share Source sample to see if it can share the data you want to Facebook and Twitter. If not then the problem is that those Share Targets don't do what you need.

    In that case you would need to go directly to the Facebook and Twitter APIs. You can find information on those from https://developers.facebook.com/ and http://dev.twitter.com

    --Rob

    Friday, February 28, 2014 5:40 AM

All replies

  • <div id="mImageBox">
    <img id='my_image' src='' alt='' width="auto" height="auto" onclick="fbs_click(this)"/>
    </div>
    <script>function fbs_click(TheImg) {
    u=TheImg.src;
    // t=document.title;
    t=TheImg.getAttribute('alt');
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}
    </script>

    Use This
    Friday, February 28, 2014 4:29 AM
  • hi Frankenstein007i need to do with in the app,its working on external browser
    Friday, February 28, 2014 4:42 AM
  • Try sharing from the Share Source sample to see if it can share the data you want to Facebook and Twitter. If not then the problem is that those Share Targets don't do what you need.

    In that case you would need to go directly to the Facebook and Twitter APIs. You can find information on those from https://developers.facebook.com/ and http://dev.twitter.com

    --Rob

    Friday, February 28, 2014 5:40 AM