+ Start a Discussion
Alexander RochaAlexander Rocha 

Visualforce Chatter/Feed funcionality

Hi everyone,

I have a problem here.
I'm trying to implement a feed functionality(Chatter) in my visualforcePage, using the feedItem object.
I followed this tutorial https://developer.salesforce.com/page/Chatter_Code_Recipes (Recipe 6) and everything runs very well.
But I want to add the flag (feed) functionality, how can I do this? (With this the "Moderator" can filter the bad feeds)
I looked FeedItem fields and I didn't find any "flag" field.

Sorry my bad english.

Alexander Santos Rocha
You can add flag using the CommunityModeration class in ConnectAPI namesapce. (please note with API V 32.0 a lot of stuff has been changed in ConnectAPI)


Alexander RochaAlexander Rocha
Thank you.

But I got a error Exception "Resource not found".

I debug the parametter and everything is right.

Alexander Santos Rocha

Alexander RochaAlexander Rocha
Hi again,

I can get the feedItem with the same parameters (CommunityId, feedItemId), but I can't flag it.
"Resource Not Found" pops in my debug.
I already set the flag permission in my community

Thank you for your attention
Alexander Santos Rocha
Can you please check and let me know what API version you are using for the class? 31.0 or 32.0?
Alexander RochaAlexander Rocha