• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to Remove Inactive Facebook Friends by Specific Year

AnonyViet by AnonyViet
February 5, 2023
in Tips
0

Surely everyone on Facebook has a few hundred to several thousand friends. But each person can only make a maximum of 5000 friends. You need to remove friends who are no longer on Facebook to make new friends. The friends you should remove from your Friend List are those who rarely interact with you, or who have been inactive on Facebook for a long time. Including accounts locked by Facebook, abandoned accounts, clone accounts, accounts that have not posted status for a long time…. To properly clean up your friends list, you can use the Tool Remove Inactive Facebook Friends below:

Join the channel Telegram belong to AnonyViet 👉 Link 👈

How to Remove Inactive Facebook Friends by Specific Year

Here is a PHP script that allows you to delete friends who have not posted Status from any year. For example, you need to delete people that they have not posted on status since 2017. This script will scan through the list of friends status once, and Unfriend with people Haven’t posted since 2017 now.

Prepare the necessary tools

  • To use PHP Script, you need 1 Free Hosting. Refer to the Quality Free Hosting can still register.
  • Or you can use Xampp to create a PHP environment on Windows. Using Xampp will not be Checkpoint account because the same IP as the IP you log in to Facebook.

Afterward Upload Script Unfriending does not work and changes to the parameters below:

  • $min_y = ‘2017’; ==> The year that friends don’t post new status
  • $access_token ==> Fill in your Full Rights Token here [Cách lấy Token Full quyền]

So which of your friends since year 2017 Until now, if you have not posted any new status, you will be unfriended. You change 2017 to another year at will.

How to use Code to delete inactive friends

Download Code or Copy the Code Delete friends that are no longer active on Facebook below on Notepad and named it unfriend.php

<?php
set_time_limit(0);
$min_y = '2019';
$access_token = "Điền Token vào đây";

function friendlist($token){
	$a = json_decode(file_get_contents('https://graph.facebook.com/me/friends?access_token='.$token), true);
	return $a['data'];
}
function last_active($id, $tok){
	$a = json_decode(file_get_contents('https://graph.facebook.com/'.$id.'/feed?access_token='.$tok.'&limit=1'), true);
	$date = $a['data'][0]['created_time'];
	$aa = strtotime($date);
	return date('Y', $aa);
}

function unfriend($id, $token){
	$url="https://graph.facebook.com/me/friends?uid=".$id.'&access_token='.$token;
	$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
    $result = curl_exec($ch);
    curl_close($ch);
	return $result;
}

$FL = friendlist($access_token);
foreach($FL as $list){
	$name = $list['name'];
	$id = $list['id'];
	$date = last_active($id, $access_token);
	if($date < $min_y){
		echo " ".$name.' => '.$date.' => '.unfriend($id, $access_token);
		echo "\r\n<br>";
	}else{
		echo " ".$name.' => '.$date;
		echo "\r\n<br>";
	}
}

Finally run the file unfriend.php follow the path of the Domain.

For example: http://anonyviet.000webhost.com/unfriend.php

You wait for a few seconds for the Script to scan the list of friends, maybe about 30 seconds. Then will print the results listed as below.

For deleted friends will show the word true front and number first at the end.

How to Remove Inactive Friends

You can combine Script to delete non-interactive friends to purge friends who do not interact with you. That way you will have a closer and closer friends list. Unfriend with inactive accounts, virtual accounts….

The article achieved: 5/5 – (101 votes)

Tags: FacebookfriendsInactiveremoveSpecificyear
Previous Post

[Download] Licensed software suite from WonderFox worth $1000

Next Post

How to hack Wifi without turning off WPS and security measures

AnonyViet

AnonyViet

Related Posts

Instructions for registering Gemini Pro for 18 months with MuMu
Tips

Instructions for registering Gemini Pro for 18 months with MuMu

December 5, 2026
Instructions for buying Gemini Ultra package using MuMu emulator for only 2.89 USD
Tips

Instructions for buying Gemini Ultra package using MuMu emulator for only 2.89 USD

December 4, 2026
Instructions on how to turn text into songs on Messenger
Tips

Instructions on how to turn text into songs on Messenger

December 1, 2026
How to get 60 days of free web hosting without a card
Tips

How to get 60 days of free web hosting without a card

November 25, 2026
How to cancel Facebook Plus package to avoid automatic renewal
Tips

How to cancel Facebook Plus package to avoid automatic renewal

November 23, 2026
How to unlock iPhone Duo face on iOS 27.3 Beta 2
Tips

How to unlock iPhone Duo face on iOS 27.3 Beta 2

November 23, 2026
Next Post
How to hack Wifi without turning off WPS and security measures

How to hack Wifi without turning off WPS and security measures

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

Instructions for registering Gemini Pro for 18 months with MuMu

Instructions for registering Gemini Pro for 18 months with MuMu

December 5, 2026
Instructions on how to create horizontal lined paper in Word like a handwritten notebook

Instructions on how to create horizontal lined paper in Word like a handwritten notebook

December 5, 2026
Instructions for buying Gemini Ultra package using MuMu emulator for only 2.89 USD

Instructions for buying Gemini Ultra package using MuMu emulator for only 2.89 USD

December 4, 2026
CIT Voice Studio: AI video dubbing, open source voice clone

CIT Voice Studio: AI video dubbing, open source voice clone

December 4, 2026
Instructions for registering Gemini Pro for 18 months with MuMu

Instructions for registering Gemini Pro for 18 months with MuMu

December 5, 2026
Instructions on how to create horizontal lined paper in Word like a handwritten notebook

Instructions on how to create horizontal lined paper in Word like a handwritten notebook

December 5, 2026
Instructions for buying Gemini Ultra package using MuMu emulator for only 2.89 USD

Instructions for buying Gemini Ultra package using MuMu emulator for only 2.89 USD

December 4, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions for registering Gemini Pro for 18 months with MuMu

Instructions for registering Gemini Pro for 18 months with MuMu

December 5, 2026
Instructions on how to create horizontal lined paper in Word like a handwritten notebook

Instructions on how to create horizontal lined paper in Word like a handwritten notebook

December 5, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

0
0
Would love your thoughts, please comment.x
()
x
| Reply