Hello list,

I’m trying to build something like facebooks "like“ into my app so that users 
can press „like“ on any entity in the activity feed. I want to show the count 
of likes next to the like button and also need to know if the current user 
likes a certain entity. 
Of course I know that i have to connect the entities „user“ and 
„activityEntity“ via „like“. I also know how to get all the connected users via 
„like“ connection.

To see if the user likes some entity I just try to get the connection between 
the two and see if it returns the users entity.

To get the like count I get all the connected users and count them. on device.

I didn’t find any other way of doing this. Am I missing something? It seems odd 
to me, to ask for all the connections all the time, for every entry in a 
tableView in a newsfeed like fb… just to get counts and if-is-connected.

How could I go about this?

Thanks!

Reply via email to