Trending content tool not working

yuppy44 Jun 13, 2012 05:59AM EDT

Hi, I'm new to trending content api. I've tried to create a demo HTML page with the following code but wasn't able to load any listing. Please advice.

Regards
Meifeng


<p>Test AddThis Trending Content </p>
<br/>begin...<br/>

<!-- AddThis Trending Content BEGIN -->

<div id="addthis_trendingcontent"></div></div>

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4fb37ef069af41d8"></script>

<script type="text/javascript">
addthis.box("#addthis_trendingcontent", {
feed_title : "Most Popular",
feed_type : "shared",
feed_period : "day",
num_links : 5,
height : "auto",
width : "auto",
domain : "www.metrolyrics.com"});

});
</script>

<!-- AddThis Trending Content END -->

<br/>end...<br/>

1 Community Answers

Paul Jun 13, 2012 11:20AM EDT

First, you've got a syntax error. Remove the second }); and the JavaScript will parse.

Second, you're using a domain that isn't being tracked with that profile ID.

Finally, there doesn't appear to be any data in your account to generate trending content. Fixing the syntax error will show the message in the JavaScript console.


This question is closed to new answers.

Still need help?


General Topics

 

Developers