3 ms·
No extension is needed. (I never use extensions for anything.) Unfollowing all friends is not complicated and can be done in a couple of lines of shell script
by 1vuio0pswjnm7 5y ago
No extension is needed. (I never use extensions for anything.) Unfollowing all friends is not complicated and can be done in a couple of lines of shell script, or using whatever programming language or HTTP client one chooses. Obviously, curl would work. There are a hundreds of ways to send HTTP requests. It is a very simple protocol. No POST requests are even necessary, only GET.
1. Log in to Facebook
2. Open "Developer Tools" (F12), select the "Network" tab, locate "Request Headers", Alt-click on "Cookie:" and select "Copy value". Use this in each HTTP request. Do not log out yet.
The URL for the Friends list is
https://mbasic.facebook.com/friends/center/friends/?ppk=1
where 1 is the page number.
Using m.facebook.com as the domain will also work. There 10 friends per page.
3. Extract the UID for each friend from the HTML and create the new "unfollow" URLs.
grep -o "uid=[^&]*" 1.html|sed 's>uid=/https://mbasic.facebook.com/a/subscriptions/remove?subject_id=>'
4. Log out.
Done.
- deleted 5y ago[deleted]
- 1vuio0pswjnm7 5y agoCorrection Unfortunately we need a GFID in addition to the UID, so more steps are required 3. Extract and GET hovercard URLs. grep -o "/friends/hovercard/mbasic/?uid=[^\"]*" 1.htm|sed 's/%3D/=/g;s/%3A/:/;s>%2F>/>g;s/&/\&/g;s/%26/\&/g;s/%3F/?/;s>^>https://mbasic.facebook.com>' 4. Extract and GET profile URLs. grep -o "href=./[^*\"]*" 2.htm|sed '/?/d;/data\/manifest/d;s>href=.>https://mbasic.facebook.com>' 5. Extract and GET "unfollow" URLs NB Making too many requests for profiles too close together may draw a temporary, limited block. grep -o "href=.[^\"]*" 3.htm|sed -n '/subscriptions/s>href=.>https://mbasic.facebook.com>p' 6. Log out. Done. The five Facebook cookies needed are: c_user xs fr sb datr Further reading: https://techexpertise.medium.com/facebook-cookies-analysis-e1cf6ffbdf8a https://techexpertise.medium.com/facebook-cookies-analysis-e... https://cookiedatabase.org/cookie/facebook/ https://cookiedatabase.org/cookie/facebook/ https://www.facebook.com/policy/cookies/ https://www.facebook.com/policy/cookies/
- jraph 5y agoGuess who is going to be banned from Facebook ;-)
- 1vuio0pswjnm7 5y agoThe next research group that tries to study the effects of Facebook on it users (and anyone who helps such research groups).
- fingerlocks 5y agoI don’t have Facebook installed, but assuming the process is the same on instagram, I reckon I could unfollow 1 person per second with the app. Even after step 3 three above, I have to enumerate and curl each unfollow url, at some undefined rate limit. So maybe 5 minutes of work to complete all the steps? ~300 followees to make scripting the chore worth the effort?
- m0dest 5y agoI tried to remove myself from all of Facebook's Audience-Based Advertising lists - the ones where companies upload lists of people that they want to target with ads. https://www.facebook.com/adpreferences/ad_settings https://www.facebook.com/adpreferences/ad_settings I'm on over 300 lists. Removing myself from each one took 6 clicks. I tried to automate it with Selenium, but their bot detector caught it and banned my device from opting out of any lists (!)
- brigandish 5y agoI’m reminded of the infamous Dropbox comment. Chrome, for example, shows cookies on a tab (Application) other than Network for a while now. I have 7 cookies set, which should I choose? The Devil is in the detail, and writing that script is far more work than installing an extension, which is just a convenient form of a script anyway (and one with details taken care of).
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- 1vuio0pswjnm7 5y agoYou cant select and copy all five cookies at once in the Applications tab, but you can in the Network tab. Personally I dont rely on Developer Tools, I capture cookies from the wire or from local proxy logs. I monitor traffic to/from my computers and my network, as many HN readers do. I always thought that Dropbox comment was related to people trying to predict successful startups. No one can do that, certainly not HN commenters. Most VC investments are losses. Im an end user. I really dont care for discussion of startups or what makes software popular. Ive never used Dropbox, and I never will.
- brigandish 5y agoThe Dropbox comment is a reference to how quickly devs will say "that's easy, just use X, Y, Z…" I see you've already needed to post another comment to correct yourself, and now you've replied to me with more humps in the road. What next? Kubernetes set up on a Raspberry PI with a transparent proxy that uses a WebAssembly binary knocked up in Rust… Perhaps it would be easier to install the extension and accept that sometimes it's easier to follow the well trodden path. YMMV.
- 5y ago