{"id":73,"date":"2011-07-17T14:11:42","date_gmt":"2011-07-17T19:11:42","guid":{"rendered":"http:\/\/pavelshub.com\/blog\/?p=73"},"modified":"2011-07-17T14:11:42","modified_gmt":"2011-07-17T19:11:42","slug":"idea-automatically-untag-facebook-photos","status":"publish","type":"post","link":"https:\/\/pavelshub.com\/blog\/2011\/07\/idea-automatically-untag-facebook-photos\/","title":{"rendered":"IDEA: automatically untag facebook photos"},"content":{"rendered":"<p><a href=\"http:\/\/pavelshub.com\/blog\/wp-content\/uploads\/2011\/07\/tag_blog_image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-77\" title=\"I've been tagged!\" src=\"http:\/\/pavelshub.com\/blog\/wp-content\/uploads\/2011\/07\/tag_blog_image.png\" alt=\"\" width=\"337\" height=\"178\" srcset=\"https:\/\/pavelshub.com\/blog\/wp-content\/uploads\/2011\/07\/tag_blog_image.png 337w, https:\/\/pavelshub.com\/blog\/wp-content\/uploads\/2011\/07\/tag_blog_image-300x158.png 300w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/a>Perhaps this will never reach implementation stage, but here&#8217;s a nifty idea: automatically untag yourself from facebook photos. I remember the photo tags section of the API having a delete function. It looks like this is no longer the case. So I can&#8217;t exactly put this in a script to run as a cron job.<\/p>\n<p>However we can still probably scrape the page and click the link programmatically. First step would be to query the <a href=\"http:\/\/developers.facebook.com\/docs\/reference\/api\/photo\/\" target=\"_blank\">facebook photo tag API<\/a> and get a list of photos where you&#8217;re tagged. The list contains a link to each photo in facebook. From here we have to options.<\/p>\n<ol>\n<li>Click on the &#8220;remove tag&#8221; button and record the http request. Reverse engineer it to see if we can replay with with a unique ID of another photo. If that is the case then great, the only thing that&#8217;s stopping us are session cookies.<\/li>\n<li>Option 2 is just to click &#8220;remove tag&#8221; button via some software. People <a title=\"Firefox Link Clicker\" href=\"http:\/\/www.google.com\/search?btnG=1&amp;pws=0&amp;q=firefox+link+clicker\">already had ideas like that<\/a> but the testing software package <a title=\"Selenium\" href=\"http:\/\/www.google.com\/q=firefox+link+clicker\">Selenium<\/a> comes to mind. It can find the &#8220;remove tab&#8221; by itself and click it.<\/li>\n<\/ol>\n<p>I was about to implement this idea, but realized that my privacy settings already allow only me to see photos that I&#8217;m tagged in. So this effort would be for vanity since people can&#8217;t see my photos anyway.<\/p>\n<p>If any of you would actually like to see this done hit my up on twitter <a title=\"Pavel987's Twitter\" href=\"http:\/\/twitter.com\/pavel987\" target=\"_blank\">@pavel987<\/a> and I&#8217;ll probably be motivated enough to write it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Perhaps this will never reach implementation stage, but here&#8217;s a nifty idea: automatically untag yourself from facebook photos. I remember the photo tags section of the API having a delete function. It looks like this is no longer the case. &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/pavelshub.com\/blog\/2011\/07\/idea-automatically-untag-facebook-photos\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[21,22,24,23],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-projects","tag-facebook","tag-firefox","tag-idea","tag-javascript"],"_links":{"self":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":4,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}