Posting status update to IBM Connections Community

423 views Asked by At

I'm able to post a status update to an IBM Connections community. However the status update is visible in the Recent Updates section and not in the Status Update section.

I'm using the following URL: https://host.com/connections/opensocial/rest/activitystreams/urn:lsid:lconn.ibm.com:communities.community:5a0fdd28-127e-4bd0-969f-ef1254ecd9dc/@all/@public

And the following JSON:

{"object":{"url":"url","objectType":"note","id":"109876b6-f33b-3210-45bc-966a5d2cc096-rai1sgp","displayName":"Tracy Morgan"},"title":"${add.target}","target":{"url":"https://host.com/communities/service/html/community/updates?communityUuid=5a0fdd28-127e-4bd0-969f-ef1254ecd9dc","objectType":"community","id":"urn:lsid:lconn.ibm.com:communities.community:5a0fdd28-127e-4bd0-969f-ef1254ecd9dc","displayName":"FEBER"},"verb":"post","generator":{"url":"url","id":"App","displayName":"inside.FEBER"},"actor":{"objectType":"person","id":"urn:lsid:lconn.ibm.com:profiles.person:8072DB8F-7FD2-497D-B341-8EA75B370C4D","displayName":"Vikram"}}

Is there something I need to change in the REST URL that will make the abpve JSON be populated in the Status Update section as well as the Recent Update section of IBM Connections. We are using IBM Connections 5.

1

There are 1 answers

4
Paul Bastide On

Sure, you are most likely running it an issue using the nonce.

Try this add the X-Update-Nonce header to your request. You can get the Nonce value from the http://apps.na.collabserv.com/files/basic/api/nonce .

Add the Header to the HttpRequest It should then work.

http://bastide.org/2014/10/08/cross-site-request-forgery-and-ibm-connections-micro-blog/