Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

 2 Answer(s)

  • It seems that you are trying to share your local web page that hosted on your local server.

    You have to first move it to live server to share your web page so other user can view your web page while clicking on the shared post.

    example- according to your code:

     <div class="fb-share-button" data-href="http://localhost/fb&#95;share/index.php" data-layout="button&#95;count"></div>
    

    so as per my understanding your code should be like this

    <div class="fb-share-button" data-href="http://www.yourwebsitename.com/fb&#95;share/index.php" data-layout="button&#95;count"></div>
    

    and also update your meta tag url.

    Please use _ in place of #95;

  • Welcome to Findnerd. You want to share the specific content of the page. It can be done using different meta tags like title,description etc. Kindly check the link for more details. https://developers.facebook.com/docs/sharing/best-practices

    One of the big issue in facebook share is caching. You need to check your link in below link to remove the cache issue.

    https://developers.facebook.com/tools/debug/

    Thank you Deepak Verma

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: