How to Hide Links for Facebook Posts

How to Hide Links for Facebook Posts provides link cloaking for replacing a long URL with the short one in the browser address bar. For example, a link like "" is replaced with "" The feature's purpose is to hide essential parts of original URLs, such as UTM parameters and affiliate codes.

The most frequently cloaked websites among users are:

  1. Google Tools.
  2. Zoom.
  3. Amazon S3.
  4. Youtube.
  5. LinkedIn.
  6. Facebook.

If you are trying to cloak links with these services, the error "Cloaking is forbidden by destination URL with X-Frame-Options header" may occur. It means that the service you are trying to hide forbids cloaking for the links, containing rendering in a frame, iframe, or object. Since applies iframe for link cloaking, you can't hide the original URLs for some services. The main reason why some apps forbid link cloaking is to provide clickjacking protection.

LinkedIn is among the applications that don't allow using link cloaking for the links. Sometimes you inevitably need to hide LinkedIn links to save important data. For this, you need:

1. Go to a Facebok post you want to share.

2. Click the ellipsis icon > Embed.


3. Choose Get code.


4. Click IFrame.


5. Extract the link from the embed code from the src value.



iframe src="" width="552" height="532" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe

6. Shorten a link > Cloak it.

This way, the link will be shortened, and you will successfully hide essential values.

Try Link Cloaking on

Get started for free

What did you learn?

  • hide facebook links
  • cloak facebook link that contains important data
  • why link cloaking is forbidden
  • facebook short links

Read also:

Join the conversation

Great! Next, complete checkout for full access to Blog.
Welcome back! You've successfully signed in.
You've successfully subscribed to Blog.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info has been updated.
Your billing was not updated.