• 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 Delete friends who are no longer active on Facebook by specific year

AnonyViet by AnonyViet
September 25, 2023
in Tips
0

Surely everyone on Facebook has a few hundred to a few thousand friends. But each person can only make a maximum of 5,000 friends. You need to remove friends who no longer play Facebook to make new friends. Friends who should be removed from the Friend List are those who rarely interact with you, or those who are no longer active on Facebook for a long time. Including accounts locked by Facebook, abandoned accounts, clone accounts, accounts that have not posted statuses for a long time… To properly clean up your friends list, you can use the tool Delete inactive friends on Facebook below:

Join the channel Telegram belong to AnonyViet ???? Link ????

How to Delete friends who are no longer active on Facebook by specific year

This is a PHP script that allows you to delete friends who have not posted Status since any year. For example, you need to delete people who have not posted on their status since 2017. This script will scan through your friends’ status list, and Unfriend with people No posts since 2017 now.

Prepare necessary tools

  • To use PHP Script, you need 1 Free Hosting. Refer to the Quality Free Hosting can still register.
  • Or you can use it Xampp to create a PHP environment on Windows. Using Xampp will not have your account Checkpointed because it is the same IP as the IP where you log into Facebook.

Afterward Upload Script Unfriend inactive and change according to the parameters below:

  • $min_y = ‘2017’; ==> The year when friends did not post new statuses
  • $access_token ==> Fill in your Token Full rights here [Cách lấy Token Full quyền]

So which of your friends has been since the year 2017 Up to now, if you have not posted any new statuses, you will be unfriended. You change 2017 into another year as desired.

How to use Code to delete inactive friends

Download Code or Copy the Code Delete friends who are no longer active on Facebook below enter Notepad and name 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 Domain path.

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

You wait a few seconds for the script to scan your friend list, maybe about 30 seconds. It will then print the results listed below.

For deleted friends text will appear true front and number first at the end.

How to Delete friends that no longer work

You can combine Script to delete inactive friends to purge friends who don’t interact with you. This way you will have a list of closer and closer friends. Unfriend inactive accounts, virtual accounts…

The article scored: 5/5 – (100 votes)

Previous Post

How to create folders in bulk and name them according to Excel lists

Next Post

Linux vs. Windows and macOS: Which OS should I use?

AnonyViet

AnonyViet

Related Posts

Cách Đăng ký Nhận Code ChatGPT Business
Tips

Cách Đăng ký Nhận Code ChatGPT Business

November 2, 2026
Instructions for cleaning LG TV with Antigravity to help it run faster
Tips

Instructions for cleaning LG TV with Antigravity to help it run faster

October 30, 2026
Quét lỗ hổng bảo mật cho Vide Coding bằng Security Audit Skill
Tips

Quét lỗ hổng bảo mật cho Vide Coding bằng Security Audit Skill

October 27, 2026
Instructions for registering for OxionAI Pro for 1 year with many powerful AI models
Tips

Instructions for registering for OxionAI Pro for 1 year with many powerful AI models

October 24, 2026
How are Windows 11 Pro and Windows 10 Pro different?
Tips

How are Windows 11 Pro and Windows 10 Pro different?

October 23, 2026
Instructions for using CleanYourTV: Remove ads on Android TV, Google TV
Tips

Instructions for using CleanYourTV: Remove ads on Android TV, Google TV

October 23, 2026
Next Post
Linux vs. Windows and macOS: Which OS should I use?

Linux vs. Windows and macOS: Which OS should I use?

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

What to do when your company opening information is stolen?

What to do when your company opening information is stolen?

November 4, 2026
How to get 0 in Docker credits to run AI Agent for free

How to get $250 in Docker credits to run AI Agent for free

November 3, 2026
Experience Galaxy Tab S12 Ultra: Price of 40 million is a worthy investment to replace a laptop

Experience Galaxy Tab S12 Ultra: Price of 40 million is a worthy investment to replace a laptop

November 2, 2026
Cách Đăng ký Nhận Code ChatGPT Business

Cách Đăng ký Nhận Code ChatGPT Business

November 2, 2026
What to do when your company opening information is stolen?

What to do when your company opening information is stolen?

November 4, 2026
How to get 0 in Docker credits to run AI Agent for free

How to get $250 in Docker credits to run AI Agent for free

November 3, 2026
Experience Galaxy Tab S12 Ultra: Price of 40 million is a worthy investment to replace a laptop

Experience Galaxy Tab S12 Ultra: Price of 40 million is a worthy investment to replace a laptop

November 2, 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

What to do when your company opening information is stolen?

What to do when your company opening information is stolen?

November 4, 2026
How to get 0 in Docker credits to run AI Agent for free

How to get $250 in Docker credits to run AI Agent for free

November 3, 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

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