How to Hide Links for Facebook Posts

advice

How to Hide Links for Facebook Posts

Short.io provides link cloaking for replacing a long URL with the short one in the browser address bar. For example, a link like "https://www.facebook.com/page/posts/248409103110" is replaced with "https://yourdomain.com/post." 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 Short.io 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 Short.io 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.

shortio-cloaking

3. Choose Get code.

shortio-cloaking

4. Click IFrame.

shortio-cloaking

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

shortio-cloaking

Example:

iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fshortio.links%2Fposts%2F2484091031888110&show_text=true&width=552&height=532&appId" 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 Short.io

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: