Skip to main content

How to disable Facebook (Meta) link prefetch

S
Written by Short.io
Updated yesterday

Facebook(Meta) prefetches short links in advance (tracks them incorrectly) and points the users directly to the destination (original long) URL.

You might consider opting out of prefetching, even though it has several advantages for advertisers and publishers, for example, it may reduce a site's loading time and enhance ad performance or web page engagement.

To disable prefetch

Prerequisites

In order to disable prefetch, you should have access to developers.facebook.com and have created a developer application.

Web page settings

Change the HTML of the long URL for which you want to opt out prefetching as follows:

  • in the <header> section add the tag

    <meta property= β€œfb:app_id” content= β€œ<your_app_id>” />

Facebook settings

  1. Make sure Facebook is aware of the link between your HTML document and your app ID in the developers.facebook.com/tools/debug settings. If needed, trigger again a re-crawl (you can find more information on the Facebook Crawler here).

  2. In developers.facebook.com select Settings and then Advanced.

  3. Under Domain Manager, click on Add a link.

  4. Under the Prefetch setting section:

    • enter your URL

    • deselect HTML or Javascript and CSS depending on your need

  5. Save.

According to the Facebook documentation, in most cases, these changes will take effect immediately, but in some scenarios, it could take up to a few hours.

Did this answer your question?