Skip to content

Instantly share code, notes, and snippets.

@tyoshikawa1106
Created February 19, 2015 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyoshikawa1106/d4a01ca913e662bb0ef3 to your computer and use it in GitHub Desktop.
Save tyoshikawa1106/d4a01ca913e662bb0ef3 to your computer and use it in GitHub Desktop.
Lightning Apps "forceChatter:feed" Sample Code
<aura:application >
<link rel="stylesheet" href="/resource/BootstrapSF1/dist/css/bootstrap.css" />
<link rel="stylesheet" href="/resource/BootstrapSF1/dist/css/docs.min.css" />
<script type="text/javascript" src="/resource/jQuery/dist/jquery.min.js" />
<script type="text/javascript" src="/resource/BootstrapSF1/dist/js/bootstrap.min.js" />
<script type="text/javascript" src="/resource/BootstrapSF1/js/docs.js" />
<!-- Header Component -->
<c:LightningHeaderComponent header="Lightning Components" detail="- Sample Application -" />
<!-- forceChatter:feed -->
<forceChatter:feed type="News" />
</aura:application>
@prafulgadgetrek
Copy link

can we display feeds specific to Group? I mean can we set group id somewhere in forceChatter:feed?

@tyoshikawa1106
Copy link
Author

Hi, Thank you for message. I thought I could do with Subject Id. But it seems not to be supported.

@tyoshikawa1106
Copy link
Author

OK! I did It! you set type="Record" subjectId="groupId".

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
  <forceChatter:feed type="Record" subjectId="0F928000000AZ7oCAG"/>
</aura:component>

@karshan77
Copy link

Hi,
I am using the following line of code in my lightning component:
<forceChatter:feed type="Record" subjectId="0057F000000YuK0QAK"/>

But, my footer i.e., comment, share is not working.
Can anyone tell me what is the problem?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment