Bug with Follow/Unfollow buttons and followers/following screens

Hi! I’ve set up my follow/unfollow buttons according to this tutorial link however whenever follow someone, the buttons don’t switch from the follow one to the unfollow and also the current users followers doesn’t update.ezgif-7-c701afbbbb5e please let me know if you have a solution! thanks

@pfordmedia any tips on this since you probably know better :grinning:

Hi @athie,

I would advise to check the following:

  • that you correctly update Current User reg. Followers (adding logged in user)
  • that you correctly update Logged in User reg. Following (adding current user)
  • that you have correct visibility rules set
    Also you could check the database collection - if something changes there for the user record.

@Victor i’ve already done so but still i havent been able to find something

Hi @athie,

There was a similar thread recently, see Very weird (or bug?) behaviour with 2 types of "follow" relationships

Not sure if @jnestour found the root cause of the problem.

I’ve mad a POC with regular buttons, for me it worked perfectly. What I could suggest - is that you recreate the follow/unfollow buttons from scratch, and see if it works.

Otherwise it is difficult to find the cause of the problem without looking at the app itself.

1 Like

@Victor I did that however when i follow someone the buttons still dont switch…

Is anything changing in the database when you follow someone? If so, it’s probably visibility related. If not, then it’s action related.

1 Like

nothing changes in the database:/ what should i correct??

Double check the actions you have made to create or update the records. Post a screenshot here of those actions so we can further help if you require it.

thanks @Colin

1 Like

That all looks fine to me :confused: can you give me a link to your app. You can post it here or DM me directly.

thank you collin! dm-ing you right away!