Creare GetSocial Activity Feeds¶
Prerequisite¶
Create Activity Feeds¶
You can create as many GetSocial Activity Feeds as you want. Each feed is identified by a feed id.
Feed Id Restrictions
Feed ID could contain only alphanumeric symbols: letters [a-z]
, numbers [0-9]
, -
, _
, .
; and should not be longer than 64 symbols.
Dashboard¶
At the moment, from the GetSocial Dashboard you can post only to existing Activity Feeds. To create a new feed make a first post from the SDK API or Activity Feed UI.
SDK API¶
To create a feed, you have to make a first post or announcement from the SDK API on the feed. There is no specific API to create a feed. We do it automatically for you.
Activity Feed UI¶
You can open Activity Feed UI for any feed id. If Activity Feed did not exist before, we create it automatically on the first post from the UI.
Global Activity Feed¶
For your convenience, we provide a Global Activity Feed by default. It is always available on the Dashboard and has a separate set of APIs on the SDK side.
```java tab=”Android(Java)”
GetSocial.postActivityToGlobalFeed(…);
GetSocial.getGlobalFeedAnnouncements(…);
GetSocialUi.createGlobalActivityFeedView(…);
```kotlin tab="Android(Kotlin)"
GetSocial.postActivityToGlobalFeed(...)
GetSocial.getGlobalFeedAnnouncements(...)
GetSocialUi.createGlobalActivityFeedView(...)
```objective-c tab=”iOS(Objective-C)”
[GetSocial postActivityToGlobalFeed: … success: … failure: … ];
[GetSocial announcementsForGlobalFeedWithSuccess: … failure: … ];
[GetSocialUi createGlobalActivityFeedView];
```swift tab="iOS(Swift)"
GetSocial.postActivity(toGlobalFeed: ..., success: ... , failure: ... );
GetSocial.announcementsForGlobalFeed(success: ... , failure: ... );
GetSocialUi.createGlobalActivityFeedView();
```csharp tab=”Unity”
GetSocial.PostActivityToGlobalFeed(…);
GetSocial.GetGlobalFeedAnnouncements(…);
GetSocialUi.CreateGlobalActivityFeedView();
```
Next steps¶
- Learn how to add Activity Feed to your app in one line of code with prebuild UI.
- Learn how to post on the feed and load feed content when building your own UI.
- Setup Push Notifications so users get notified on social interactions on the Activity Feed on Android, iOS or Unity.
- Understand how your users use Activity Feed with Analytics.