Linked Questions

Popular Questions

ShareThis image share not working on Facebook/Twitter

Asked by At

ShareThis image share not working on Facebook/Twitter on PHP site I am using the ShareThis plugin on a PHP-based site that involved image upload and processing. I want to allow people to share the final processed image, along with a link to the page.

<div class="container-fluid">
  <div id="title">
    <h1> South Florida Speaks</h1>
  <div class="col-sm-8 col-sm-offset-2 col-lg-6 col-lg-offset-3" id="paragraph">
    <div class="row">
      <p>The South Florida Speaks series is put on by LaunchCode to highlight the variety of programming languages used by local employers and entreprenurs in the local area. </p>
      <p>Miami is well known for being multicultural; many people speak a second or third language. We want to make saying "I speak JavaScript" or "I speak .NET" just as common as telling someone that you speak Spanish or Creole.</p>
          <a href="#" class="inline-link lc">Check out our list of upcoming events</a>!
    <div id="finalImgContainer">
        if (!empty($_POST["submit"]) && $_POST["submit"] == "submit") {
          echo  '<div class="row" id="finalImage">
                  <img src= "';
          $imageUrl = 'resources/uploads/' . session_id() . '/' . basename( $imageWithText );
          echo $imageUrl;
          echo '"><div>';
          echo "<div class='row' id='shareThisRow'><span class='st_sharethis' st_url='{$imageUrl}' st_title='South Florida Speaks' st_image='{$imageUrl}' displayText='ShareThis'></span>
          <span class='st_facebook' displayText='Facebook'></span>
          <span class='st_twitter' displayText='Tweet'></span>
          <span class='st_linkedin' displayText='LinkedIn'></span>
          <span class='st_pinterest' displayText='Pinterest'></span>
          <span class='st_email' displayText='Email'></span></div>";

          // echo "<div class='shareaholic-canvas' data-app='share_buttons' data-app-id='23146239' data-title='South Florida Speaks' data-link='' data-image='{$imageUrl}' data-summary='Description of the page you are sharing'></div>";

Related Questions