Facebook share stripping my Joomla share link code

Posted on 2011-04-24
Last Modified: 2012-05-11
I am trying to share a link on facebook from my joomla site but facebook is stripping a part of my link.

The link I'd like to add is:

My syntax for adding this link is:

However after this link gets added on Facebook when I click on it I reach the following page:

As you can clearly see the last part of the code is being stripped:

Why is this happening? When I am inside facebook and I try to share the link from within facebook, the whole link can be added without being stripped.

I am attaching my facebook.php file which genereates this page, should it be necessary.

What am I doing wrong and how can I fix this problem?

Thanks in advance.
Question by:badwolfff
    LVL 4

    Expert Comment

    You should be using a URL shortner anyway, as those URLs are too long and complex to bookmark and share and will break. That is why it's cutting the link off.

    Go to and see whether you can get a URL shortening button integrated. may also have similar options.


    Author Comment

    Hi SamMacPC,

    thanks so much for the idea. However there is snag in this. My links are generated on the fly and I can't go to each time to generate a shorlink for each of them.
    Is there a way I could generate the link on the fly too?

    thanks again

    Author Comment

    Hi SamMacPC
    Do you know how the api works?
    Could I integrate it into my php code to generate links on the fly?
    thanks again

    Accepted Solution

    the problem has been solved on another thread

    thanks all for your feedback

    Author Closing Comment

    the problem has been solved on another thread

    thanks all for your feedback

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now