Skip to content Skip to sidebar Skip to footer

Get Number Of Comments In Yammer Feed

I am trying to get the number of comments for a yammer feed. I used the below query jQuery.getScript('https://c64.assets-yammer.com/assets/platform_js_sdk.js',function(){ console.l

Solution 1:

Yammer CORS error are mostly due to missing JS origins. You'd need to define data-app-id in your code. Looks like that's missing from your snippet...

data-app-id="YOUR-APP-CLIENT-ID" 

data-app-id, is the app_id of your registered app and ensure JS origin is in place.

Also, instead of using jQuery.getScript(), I'd suggest you call the script in the header section of your HTML page like this:

<script type="text/javascript" data-app-id="YOUR-APP-CLIENT-ID" src="https://c64.assets-yammer.com/assets/platform_js_sdk.js"></script>

Post a Comment for "Get Number Of Comments In Yammer Feed"