This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Buddypress Friend of a Friend (FOAF)


Increase communication and networking at your buddypress based social network.

This plugin includes a new block inside each user profile page and includes a “Friend of a Friend (FOAF)” display.
If you have buddypress friends enabled your users will have friends. Their friends also have friends and these friends again have friends.
So there are “social paths” inside your members friends lists. This Plugin visualizes the nearest path to the user whose profile is visited by another user.
The world is small and you’ll see that most users know each other – because their friends are friends…


  • New block inside buddypress profile page (automatically integrated) that tells you whose friend the visited user is
  • Shortcode: Create a page using the shortcode [buddypressfoaf_show_potential_friends] that shows excerps of friends of your friends that are not yet your friends
  • Widget: Show a random user (friend’s friend or random user if you do not have friends)

Please take a look at the screenshot section for some examples!

More about me and my plugins

Since the year 1999 I do administration, customizing and programming for several forums, communities and social networks. In the year 2013 I switched from another PHP framework to WordPress.
Because not all plugins I’d like to have exist already I wrote some own plugins and I think I’ll continue to do so.

If you have the scope at forums or social networks my other modules might also be interesting for you. Just take a look at my WordPress Profile to see all my Plugins. Use them and if my work helps you to save time, earn money or just makes you happy feel free to donate – Thanks. The donation link can be found at the right sidebar next to this text.


  • Buddypress profile integration: if you visit another profile you will see via which friends you now the visited person
  • A widget will introduce other members to you you might know about your friends
  • Via shortcode you can integrate a “do you know this friends of your friends” page into any place at your wordpress site!


  1. Upload the files to the /wp-content/plugins/buddypress-foaf/ directory or install through WordPress directly.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Open a profile of a friend, a friend of a friend or a friend of a friend of a friend to see how it works 🙂
  4. Have fun!

Available Shortcodes:
* [buddypressfoaf_show_potential_friends]


The admin user is not shown up in “you may know” widget or site

Yes, the user with ID 1 (admin) is excluded

You have a question?

Use the support forum


September 3, 2016 1 reply
Hi, Unforunately your plugin destroys the BuddyBoss theme. See before after
Read all 9 reviews

Contributors & Developers

“Buddypress Friend of a Friend (FOAF)” is open source software. The following people have contributed to this plugin.




  • some css support ( to make customizing easier


  • removed filtering for last activity in wigets due to performance problems with huge user databases


  • Fixing two minor bugs


  • Admin user (user with ID 1) will not appear any more in “you might know” widget or site


  • adding “add as friend” button below the users suggested as friends (thanks to maddogmcewan)


  • little bug fixed: Own user could be shown as potential friend if a user does not have friends yet


  • Some code corrections (debug messages, thanks to BackpackersUnion for reporting)


  • Using bp_core_get_userlink() method from Buddypress now to create userlinks in widget and shortcode output


  • Fixed minor bug: using user_nicename instead of user_login now.


  • Avatars shown at profile pages are now always shown as thumbnails.


  • Avatars that are shown in profile pages of visited user profiles are now clickable


  • Code cleanup, fixed minor bugs


  • Code cleanup, fixed minor bugs


  • Fixed little bug in profile output


  • Widget now only shows users that have been active in the last 6 months


  • Fixed little bug for gettext language generation


  • Introduce own page (via shortcode [buddypressfoaf_show_potential_friends] that displays the top ten of your friends’ friends that have the most friends common with you. Also random friends of your friends are shown.
  • Introduce a new Widget. A random user of your friends friends is shown. If you do not have friends or friends of your friends or if you are not registered at the site a random user is shown


  • First version.