BuddyPress Automatic Friends

BuddyPress Automatic Friends

  • Contributors: <a href="http://Array">stevenkword</a>
  • Tags: admin, automatic, buddypress, friends
  • Requires at least: 3.5
  • Tested up to: 4.5.13
  • Stable tag: 2.0.7
  • License: GPLv2 or later
  • License URI: http://www.gnu.org/licenses/gpl-2.0.html

156 Responses

  1. Phillip says:

    I installed the plugin and activated but not showing up in dashboard.

  2. Hi Steve,
    It’s possible to make as default all new user registration as friends without set up IDs?

    Many thanks,

    • Steven Word says:


      It’s in progress. I’m working on v 2.0 now which overhauls pretty much everything. It will be released before the holidays.

      • Ros says:

        Hi Steven,
        but now it’s possible to make as default all new user registration as friends without set up IDs…where?

        • Steven Word says:

          There is not an option to always make everyone friends with everyone else. However, I don’t think this would be terribly difficult to accomplish. Let me think a little while about the best way to implement it.

          As for right now, you will still need to setup global friend user names in the settings found at Admin > Users > Automatic Friends.

  3. Steven Word says:

    Would anyone like to beta test version 2.0? It is ready, but I’d like to get a second pairs of eyes on it.

  4. Bonnie says:

    Yes, please!! I’d love to beta test!

  5. Bonnie says:

    Hi – the plugin works perfectly for me, as admin of the site; all new members can automatically be my friends. But it’s missing the main feature I need: have all *group* members automatically be friends. It’s about controlling profile and activity visibility so only other members of the group can access them. My site is composed of six private groups, and for the moment it’s a bit disturbing that any user at all can click on a profile of someone not in the same group and access their info. Would this be something really difficult to implement?

    • Steven Word says:

      @Bonnie — Thank you very much for the testing! The main intent behind the upcoming release was to keep the functionality the same as the previous version, but make the administration accessible to a wider audience.

      Now that I am mostly satisfied with the user experience, I can start taking a look into providing some additional features. I’ve had a similar feature request before, having to do with groups, and I will put it at the top of the short list. I can’t speak to the difficulty without doing some further research, but I will look into it.

      • Bonnie says:

        Yay for being at the top of the shortlist! I’m certain a lot of people will be interested in this; customizing privacy in BP is a bit of a challenge, and more options for “friending” will definitely be a huge plus. I think I’ll review and comment on WordPress.org to see what the response is.

        It’s always reassuring when plugin developers react well and quickly to users. Thank you!

  6. Steven Word says:

    Version 2.0.1 of BuddyPress Automatic Friends is now available.

  7. Steven Word says:

    BuddyPress Automatic Friends is now available in Spanish courtesy of to Maria Ramos. Thanks Maria!

  8. Rosario says:

    Hi Steven!

    I would like all users who sign up to our site were already friends, without having to select them one by one from Automatic Friends” settings.

    Many thanks,

  9. Kerry says:

    Hi Steven! Great plugin. We’re installing BuddyPress on a website with 250+ existing users. It’s replacing Mingle which had the same capability as your plugin. All users auto friend with the admin upon registration. Once we install Buddypress and then your plugin, is there a way to set up for all existing users to be automatic friends with the admin? If not, this would be a great feature to add to your plugin.

  10. David Foster says:

    I have installed this plugin, and when I activate it, go to the settings, and try to add the admin, it just hangs. I am not able to add any user to the global add friend area. We have about 600 members on our site. Could this be why it takes so long?

    • Steven Word says:


      I am thinking this is a JS autocomplete issue. I have not tested extensively with a large user base, but if you can give me a little time I will investigate and improve the caching mechanism if possible. Thank you for the feedback!

  11. Lynne says:


    Is there a way to turn off the “… accepted your friendship request” emails for the friendships created automatically by the plugin?

    It seems as if all new users receives mass notification emails from the automatic friend requests which can be annoying.


    • Steven Word says:

      @Lynne — I’ve checked into my source and I have these emails disabled. What other BuddyPress plugins do you have activated?

  12. Lynne says:

    @steven …..I replied to you on Github already. I am using about 31 other buddypress plugins for our student community group. Is that the reason why the notifications goes out automatically?

    1. Select BP Default Group Avatar
    2. Select BP Group Documents
    3. Select BP Group Management
    4. Select BP Group Organizer
    5. Select BP Profile as Homepage
    6. Select BP Profile Search
    7. Select BuddyMenu
    8. Select BuddyPress Activity Privacy
    9. Select BuddyPress Auto Group Join
    10. Select BuddyPress Automatic Friends
    11. Select BuddyPress Extend Widgets
    12. Select BuddyPress Docs
    13. Select BuddyPress Custom Profile Menu
    14. Select BuddyPress Geo
    15. Select BuddyPress Group-O-Matic
    16. Select BuddyPress Group Email Subscription
    17. Select BuddyPress Groups Extras
    18. Select BuddyPress Message Attachment
    19. Select BuddyPress Pending Activations
    20. Select BuddyPress Portfolio
    21. Select BuddyPress Profile Progression
    22. Select Buddypress profile view from admin
    23. Select BuddyPress Real Names
    24. Select BuddyPress Registration Groups
    25. Select BuddyPress Toolbar
    26. Select Buddypress Xprofile Custom Fields Type
    27. Select Custom Profile Filters for BuddyPress
    28. Select Export User Data
    29. Select FB like notification for buddypress
    30. Select Mass Messaging in Buddypress
    31. Select Suffusion BuddyPress Pack

    • Steven Word says:

      @Lynne — 31 plugins means 31 variables in this equation. This is the first report I am having of this problem which leads to believe that one of these other plugins may be hooking into the notification system and overriding the default functionality. Given the number of BuddyPress related plugins you are using, I am reasonably sure this is what is happening. The first thing I would do is disable all other plugins except for BuddyPress ( inside a development environment would be preferred ) and see if the problem persists. After that you would have to go through the 31 step process of enabling each plugin one by one until the problem is identified. It’s a lot of work, but if you can track down the problem, I am willing to try and fix the compatibility issues if possible. Good luck!

  13. Lynne says:

    @steven….woww that is extremely a long step. Thank you for replying, I will look into it!

  14. Godavid says:

    Found an error you’ll be interested in, on first couple logins of a new user, this error is thrown:

    Fatal error: Cannot unset string offsets in /wp-content/plugins/buddypress-extended-friendship-request/bp-extended-friendship-request.php on line 338

    Will have to abandon this plugin for now until this gets fixed (or I might just fix it myself, in which case I’ll gladly post the fix here).

    Good plugin other than this error which causes a white screen and looks muy no bueno

  15. Alfredo says:

    I have installed and activatd the plugin however i don’t see it anywhere in the dashboard. I even tried to go to it like this: http://hyleysteatox.com/wp-admin/options-general.php?page=bp-automatic-friends but to no avail ( it says that I don’t have sufficient permissions to access that pag).

    I am using the latest version of WP and BP 1.9.2 .

    • Godavid says:

      My experience with that issue (insufficient permissions) was usually due to a poorly written plugin (and generally not the plugin in question). I’d highly suggest deactivating your other plugins to see if one of them is causing the problem.

      • Alfredo says:

        yes but what about the simple fact that it dosn’t show up anywhere in th dasboad like it should

        • Steven Word says:

          @Alfredo I think what Godavid is trying to say is that other plugins may be affecting this one. The problem you are having has not been reported on a massive scale. If the settings did not show-up in the dashboard, no one else would be able to use it and this is the first report I am getting of the problem.

          • Alfredo says:

            So it turns out I’m retarded and I deactivated all of the plugins 3 times then restored the DB three times to realize that it added the link under “Users” in the dashboard instead of settings.
            Thanks @Steven Word for the great plugin and @Godavid for the help

          • Steven Word says:

            @Alfredo — No problem. I’ve been there before. 🙂

  16. Greg says:

    Hi Steven, a while back we wrote a quick hack (which i still have somewhere) that basically was an extension of the WordPress Social Login Plugin (https://wordpress.org/plugins/wordpress-social-login/). The idea of WSL plugin is it has option to “pull” in a ;list of FB friends a new user registering on a blog say with FB… we wrote some messy code to basically then auto befriend any FB friends found that was also registered on the blog…

    This makes say a buddypress site less “lonely” on 1st visit, if the guy joins with FB at least all his FB friends are already befriended on the blog as well.

    I was trying to find a away of using your plugin, but hooking somehow into the “global friend list” for a site that uses STEAM logins. I already manage to pull an array of friends of a steam user, is there any way to create “sub global lists” so that we could give every user his “own global list” – i can then add the returned array of userids into that list and your plugin will do the rest?

    • Steven Word says:

      @Greg — Interesting use case here. I don’t think it would really support most of my users to create a secondary “sub” users list, but I’d be happy to help you solve your problem. However, I would be willing to add a filter on the methods that link accounts if you’d like so that you could intercept the list of global friend IDs.

      • Greg says:

        @Steven – Thank you Steve – I started a thread here (https://wordpress.org/support/topic/here-is-code-for-function-to-auto-befriend-bp-friends-if-they-exis-on-blog-and-t) . Basically what i have now is a list of a users friends in a seperate table, sorted by “Provider” e.g. facebook, linkedin, steam etc.

        You will see there is a SQL lookup on the end of that code that will return an array of a particular users other network friends, at the top of that post i the used the BP add friend function … which is not working too well after the V2 update of BP

        • Steven Word says:

          @Greg — It sounds like you may not need my whole plugin. Have you taken a look a the method, `BPAF::create_friendships( $initiator_user_id )` located in the main plugin file? I think it may help you join your IDs together. You would need the other methods referenced in that method, but that might be the base of what you are looking to do.

  17. Having the same issue with hundreds of friend request emails going out. Very frustrating as we pay for private smtp and this wastes our credits.
    Definitely a bug in the automatic friends plugin. Hope it gets worked out in next update.

  18. Haribol says:

    thanks for this nice plugin – just one request. we dont want every member to be able to use this plugin – we want only certain roles to make automatic friends. can you help with this ?

    • Steven Word says:

      @Haribol — Let me go back and take a closer look at the code. I should have a capability in there to handle this, but at first glance it doesn’t look like I put one on there. If this turns out to be the case, I will be making an update ASAP!

    • Steven Word says:

      @Haribol — Upon further inspection, I see that the way I have this setup currently is to restrict the options page to users with the ‘manage_options’ capability. Users without this capability, should not be able to manage the admin settings.


      • Haribol says:

        its not the admin settings – in each user’s profile – the user has a default option to be able to accept everyone as friends – i wish this not be the case – since i want to be able to allow only those we choose to have that option – else someone could become a friend of everyone and spam them or hound them.. .. could you enable a way – by which admin can allow or disallow this for members. thanks

  19. Jonas says:

    I have downloaded and installed the plugin, but it is not showing in my dashboard. I am running the latest version of WP and it is a multisite environment. I have tried to re-install the plugin, network activate it, locally activate it, and I have also tried to use it on both the main domain and sub-domains, but it is not showing in the dashboard.
    I could see, that somebody had the same problem with an older version of the plain about a year ago, but no solution was posted here in this thread.
    Does anybody know a solution to this problem? Or is it because the plugin does not work with multi sites?

    • Steven Word says:

      @Jonas — The plugin has had multisite support since almost the beginning (unless it has since stopped working). Are you looking under the “Users” section and not under “Settings”?

      Try directly accessing the pages? ‘wp-admin/users.php?page=s8d-bpaf-settings’ AND ‘wp-admin/network/users.php?page=s8d-bpaf-settings’

  20. quinn says:

    An error pops up for a spit second and disappears on the front end. after. it goes so quick but I screen recorded it and paused it at the flash and this is what it says. Is developer still working on this plugin?

    Notice: get_user_meta ($user)id, ‘last_activity’) was called incorrectly. User last_activity data is no longer stored in user meta. Use bp_get_user_last_activity() instead.

    • Steven Word says:

      @quinn — I was thinking the plugin had been fairly stable for a while, but let me look into this. Thanks for the bug report!

Leave a Reply

Your email address will not be published. Required fields are marked *