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. please let me know if you have a solution! thanks
@pfordmedia any tips on this since you probably know better
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
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.
@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.
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.
That all looks fine to me 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!