Hi I Have to create a timeline feed activity like facebook. I give the likes and comments using reactions.but if i give the likes again to a same post by a same person the likes count get increased. how to resolve it.
and how to use the aggregated feeds.. please give some example regarding this..
Multiple reactions from a user are allowed with the Stream API. We have a feature in the backlog to toggle this to allowed/not allowed, but I don't have an ETA for release. You can find aggregated examples here: https://getstream.io/blog/aggregated-feeds-demystified/
Related
I'm following up on question from here:
How to build a news feed with aggregate and flat types?
Tommaso posted a great answer which basically states - use a single aggregated feed. But the getstream.io documentation says:
Only Flat Feeds may be followed
So how do you achieve having an aggregated-like timeline which users can follow? Do you have to use flat feed and do aggregation on your own somewhere in backend?
Alright, I found a great article on Medium: https://medium.com/getstream-io/best-practices-for-instagram-style-feeds-3e1d9dd2dc03. I'm answering my own question to let others know what I found out.
Let me explain.
Only Flat Feeds may be followed
actually means:
Only Flat Feeds may be followed (by any other type of feed, such as aggregated).
When you create new user (let's say John), you should create his flat feed. This feed will be shown when John goes to his profile - he will see only his own activities.
After that, create an aggregated feed for him. This feed will be shown on his timeline, with activities from other users.
When John follows 10 people, his aggregated feed will follow 10 flat feeds.
When John becomes followed by 5 people, their aggregated feeds will follow John's flat feed.
When John (or anyone else) opens his profile, he should be shown a flat feed which the specific user can follow
When John opens his timeline, he should be shown an aggregated feed populated by activities of people he followed
Looks to me like aggregated feeds are here only for following flat feeds and displaying their activities. And flat feeds are here for actually posting content (status/image/video).
Update: Just found an article here: https://getstream.io/blog/aggregated-feeds-demystified/ which basically says that activities should be added to aggregated feed, not flat feed. This basically says that my explanation above is not correct. Anyone could assist with this?
How to filter activities in e.g. If I want to filter activity based on some content, it should list all the activities which had that content. Is there any such functionality provided by getstream?
Could you please suggest ?
I'm looking for the same thing. If we assume GetStream is like Facebook, Facebook doesn't really let you search their feed, and in general I think it's a tricky thing to do. What Facebook DOES do is have that SLOW search up at the top (you can tell it takes a long time and half the time doesn't even really have good results). If we accepted that our search would be slow we can paginate through a list of all the objects in our feed from GetStream then search through them on our site. Not a good solution but haven't really seen any other ones.
Is it possible to implement filtering on feeds in stream? I would like to allow users to follow other user posts but have those tagged with various categories. The desire is to select a category of Football and see just the posts made by people I follow which have that tag or potentially a collection of tags if the category was All Sports for example.
Looking in the api and docs it seems that a feed is pivoted on a single attribute so I can do a request for all posts of people I follow but not all posts for people I follow that are about NCAA or NFL.
Currently the getstream-io api does not have any filtering capability for the retrieval of activities. All possible options for retrieval of activities can be found in the REST docs
This question is complementary to Retrieving more than 150 Instagram comments and a repetition of this older post in the group.
Currently it appears to be impossible to retrieve a full list of likes or comments for a specific post. There are no documented pagination parameters, and it is unclear how one could paginate over likes as they have no publicly exposed timestamps or time-related identifiers.
At the very least the developer documentation on http://instagram.com/developer/endpoints/comments/ and http://instagram.com/developer/endpoints/likes/ should be amended to mention that it is not possible to get a full list of either comments or likes.
Are there any workarounds for this, or plans to support pagination for the comments and likes endpoints?
If no such plans exist, how about allowing for control over the ordering of results? This would at least allow for new entries to be retrieved with reasonable confidence.
At the moment, it looks like the /likes endpoint returns results in newest to oldest order, but unfortunately the comments endpoint uses oldest to newest.
my question may seem a bit complicated but let me clarify. Using Twitter's Api system, I was able to get the 20 most recent tweets of a particular user. However, this isn't really exactly what I wanted. As I am making an iPhone application, it would seem more interesting for the user to see the most recent tweets from other people he follows than tweets he himself has composed. So, is there anyway to get the 20 most recent tweets from users that a particular person follows? If the question is not clear enough please let me know so I can clarify it, thanks :)
You can get up to 800 tweets from the user's followers
https://api.twitter.com/1.1/statuses/home_timeline.json
For example, if you want 20 tweets, but no replies, use
https://api.twitter.com/1.1/statuses/home_timeline.json?count=20&exclude_replies=true
Try getting the ids of the followers
https://dev.twitter.com/docs/api/1.1/get/followers/ids
Should be something like...
/followers/ids.json?screen_name=xxx
or possibly /followers/ids.json?user_id=xxx
Then, get the tweets from those ids
https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
/statuses/user_timeline.json?screen_name=twitterapi&count=20