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" URLsNB 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-e...