Not all of it but some, these apps requests access to a large number of resources on your phone, so it is not "just" facebook activity that gets logged.. and then later pulled by Cambridge Analytica.
If you run it in a browser you are sandboxing your activity to the browser, of course that doesnt keep you from using those "how would I look as a viking" apps or whatever that also harvests your data.
Not using the apps is a good first start.
the problem with facebook (at least, back then) is not only could you give cambridge analytica's dumb app access to your stuff, you could give it access to your friends' stuff, and access to their friends' stuff (which was beyond just seeing who knew who), etc. per yesterday's
make me smart podcast this changed back in 2015 just after CA did it, but i'm not certain to what extent.
meanwhile, zuckerberg is telling people to look at their privacy settings.
Don’t have Facebook. The whole company is one big breach of ethics right down to its inception. Don’t understand the outrage over our enemies exploiting American narcism for political gain.
the two biggest problems with facebook right now are: a) even if you delete your profile, facebook doesn't delete your data (nor does anyone else who got it from facebook); and (much creepier) b) facebook builds profiles about people who aren't on facebook ("Starbuck1975") by monitoring the conversations of people talking about Starbuck1975 using facebook.
the first strike against this is the EU's general data protection regulation, which goes into effect some time this spring. it'll be interesting to see if the US follows, though i doubt it (we don't have the same concept of privacy in public over here, not to mention our politicians are complete whores see: dropping the regulation disallowing your ISP from adnetworking you).