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.

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.

Advertisement

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.
 

For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

Further reading: Facebook, Instagram
Advertisement

Related Stories

Popular Mobile Brands
  1. Samsung Galaxy S24 Ultra Deal Revealed Ahead of Amazon GIF Sale
  2. Amazon Sale 2025: OnePlus 13s, OnePlus Nord 5 Deals Revealed
  3. iPhone 16 Pro, iPhone 16 Pro Max Offers Listed Ahead of Flipkart Sale
  4. Meta's Ray-Ban Display Smart Glasses Get a Screen, Brings New Features
  5. CMF Headphone Pro India Launch Set for This Date
  6. Amazon Sale: iPhone 15 Price to Drop Below Rs. 45,000
  7. Instamart Sale: iPhone 16, OnePlus 13R at Jaw-Dropping Prices
  8. Garmin Venu 4, Instinct Crossover AMOLED Debut With New Lifestyle Logging Feature
  9. iPhone 17 Series, iPhone Air Pre-Order Discounts Announced by Retailers in India
  10. Redmi 15R 5G With MediaTek Dimensity 6300 SoC, 6,000mAh Battery Launched
  1. DJI Mini 5 Pro With a 50-Megapixel 1-Inch CMOS Sensor Launched: Price, Specifications
  2. Honor Magic 8 Series, Honor Magic V6 Tipped to Feature 200-Megapixel Camera Sensors
  3. Garmin Venu 4 Smartwatch With LED Flashlight, ECG App Launched Alongside Instinct Crossover AMOLED
  4. Samsung Galaxy S24 Ultra to Be Available at Its Lowest Price During Amazon Sale
  5. How to Buy the iPhone 15 for Under Rs. 45,000 in This Amazon Great Indian Festival 2025 sale
  6. Meta Ray-Ban Display Smart Glasses Launched With a Screen and Meta Neural Band
  7. Ray-Ban Meta Gen 2 Smart Glasses Launched With 2X Battery Life, 3K Ultra HD Camera
  8. Oakley Meta Vanguard Smart Glasses With a Centrally-Placed Camera Launched, Aimed at Athletes
  9. NASA’s Artemis Prepares Crews for Future Mars Missions
  10. JWST Identifies Compact, Metal-Poor Star-Forming Region Tracing Back to Early Universe
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.