Instagram and Facebook Are Stalking You on Websites Accessed Through Their Apps. What Can You Do About It?

Facebook, Instagram parent Meta has a custom in-app browser that operates on any website you might click through to from both these apps.

Advertisement
By The Conversation | Updated: 16 August 2022 15:09 IST
Highlights
  • Meta has said it isn't doing anything users didn't consent to
  • Code injection enables user tracking
  • The “code” mentioned in the case is pcm.js

Meta has a custom in-app browser that operates on Facebook, Instagram,

Social media platforms have had some bad press in recent times, largely prompted by the vast extent of their data collection. Now Meta, the parent company of Facebook and Instagram, has upped the ante.

Not content with following every move you make on its apps, Meta has reportedly devised a way to also know everything you do in external websites accessed through its apps. Why is it going to such lengths? And is there a way to avoid this surveillance? ‘Injecting' code to follow you Meta has a custom in-app browser that operates on Facebook, Instagram, and any website you might click through to from both these apps.

Advertisement

Now ex-Google engineer and privacy researcher Felix Krause has discovered this proprietary browser has additional program code inserted into it. Krause developed a tool that found Instagram and Facebook added up to 18 lines of code to websites visited through Meta's in-app browsers.

This “code injection” enables user tracking and overrides tracking restrictions that browsers such as Chrome and Safari have in place. It allows Meta to collect sensitive user information, including “every button and link tapped, text selections, screenshots, as well as any form inputs, like passwords, addresses and credit card numbers”.

Advertisement

Krause published his findings online on August 10, including samples of the actual code.

In response, Meta has said it isn't doing anything users didn't consent to. A Meta spokesperson said: We intentionally developed this code to honour people's [Ask to track] choices on our platforms […] The code allows us to aggregate user data before using it for targeted advertising or measurement purposes.

Advertisement

The “code” mentioned in the case is pcm.js – a script that acts to aggregate a user's browsing activities. Meta says the script is inserted based on whether users have given consent – and information gained is used only for advertising purposes.

So is it acting ethically? Well, the company has done due diligence by informing users of its intention to collect an expanded range of data. However, it stopped short of making clear what the full implications of doing so would be.

Advertisement

People might give their consent to tracking in a more general sense, but “informed” consent implies full knowledge of the possible consequences. And, in this case, users were not explicitly made aware their activities on other sites could be followed through a code injection.

Why is Meta doing this? Data are the central commodity of Meta's business model. There is astronomical value in the amount of data Meta can collect by injecting a tracking code into third-party websites opened through the Instagram and Facebook apps.

At the same time, Meta's business model is being threatened – and events from the recent past can help shed light on why it's doing this in the first place.

It boils down to the fact that Apple (which owns the Safari browser), Google (which owns Chrome) and the Firefox browser are all actively placing restrictions on Meta's ability to collect data.

Last year, Apple's iOS 14.5 update came alongside a requirement that all apps hosted on the Apple app store must get users' explicit permission to track and collect their data across apps owned by other companies.

Meta has publicly said this single iPhone alert is costing its Facebook business $10 billion (roughly Rs. 79,400 crore) each year.

Apple's Safari browser also applies a default setting to block all third-party “cookies”. These are little chunks of tracking code that websites deposit on your computer and which tell the website's owner about your visit to the site.

Google will also soon be phasing out third-party cookies. Firefox recently announced “total cookie protection” to prevent so-called cross-page tracking.

In other words, Meta is being flanked by browsers introducing restrictions on extensive user data tracking. Its response was to create its own browser that circumvents these restrictions.

How can I protect myself? On the bright side, users concerned about privacy do have some options.

The easiest way to stop Meta tracking your external activities through its in-app browser is to simply not use it; make sure you're opening web pages in a trusted browser of choice such as Safari, Chrome or Firefox (via the screen shown below).

If you can't find this screen option, you can manually copy and paste the web address into a trusted browser.

Another option is to access the social media platforms via a browser. So instead of using the Instagram or Facebook app, visit the sites by entering their URL into your trusted browser's search bar. This should also solve the tracking problem.

I'm not suggesting you ditch Facebook or Instagram altogether. But we should all be aware of how our online movements and usage patterns may be carefully recorded and used in ways we're not told about. Remember: on the Internet, if the service is free, you're probably the product. 


What should you make of Realme's three new offerings? We discuss them on Orbital, the Gadgets 360 podcast. Orbital is available on Spotify, Gaana, JioSaavn, Google Podcasts, Apple Podcasts, Amazon Music and wherever you get your podcasts.
Affiliate links may be automatically generated - see our ethics statement for details.
 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Further reading: Facebook, Instagram
Advertisement

Related Stories

Popular Mobile Brands
  1. OnePlus Nord 6 Camera Configuration Revealed as India Launch Draws Near
  2. Instagram Might Be Testing a 'Plus' Subscription With These Features
  3. Vivo X300 Ultra, Vivo X300s Launched With Zeiss-Tuned Cameras and Teleconverter Support
  4. Lava Bold N2 Pro With 50-Megapixel Rear Camera Debuts in India: See Price
  5. Leaked Screen Protector Points to the Fate of Apple's Dynamic Island
  6. Google Pixel 11 Design, Key Specifications and Launch Timeline Leaked
  7. Here's Everything Apple Has Introduced With the iOS 26.5 Beta 1 Update
  8. Oppo Reveals Find X9 Ultra Global Launch Date, Teases Find X9s Pro Cameras
  9. WhatsApp for CarPlay Reportedly Enters Beta Testing With These Features
  10. Vivo Pad 6 Pro Launched With 13-2-Inch 4K Display and This Snapdragon Chip
  1. OnePlus Nord 6 Camera Configuration, Durability Details Revealed as India Launch Draws Near
  2. Instagram Plus Subscription Reportedly in Testing With Premium Story Tools, Exclusive Features
  3. WhatsApp Reportedly Testing Native CarPlay App With List of Recent Chats
  4. Bitcoin Price Hovers Around $67,000; Analysts Say Price Reflects Consolidation Phase
  5. Oppo Find X9 Ultra Global Launch Date Confirmed, Find X9s Pro Camera Details Teased Ahead of China Debut
  6. iOS 26.5 Beta 1 Rolls Out With Ads in Apple Maps, RCS Message Encryption Toggle
  7. Lava Bold N2 Pro Launched in India With 5,000mAh Battery, 50-Megapixel Rear Camera: Price, Specifications
  8. Google Pixel 11 Spotted in Leaked CAD Renders That Suggest It Will Arrive With Subtle Design Changes
  9. Apple's iPhone 18 Pro Could Feature Smaller Dynamic Island Instead of Hole Punch Cutout, Leaked Screen Protector Suggests
  10. Vivo Pad 6 Pro Launched With 13.2-Inch 4K Display, Snapdragon 8 Elite Gen 5 Chip: Price, Specifications
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.