FB.API 'Undefined' : news.reads activity

I'm trying to implement the Facebook news.reads App - I'm just missing one final step - executing the POST to FB. When I look at the Firebug console, it appears that the POST is in fact working...or at least there are no errors. Check out the output below:


__a 1
__user  myID
fb_dtsg AQBi1J4k
href    http://www.around-around.com/today-show/
phstamp 1658166105497452107119

(I've validated that the meta data from the URL is correct).

But the response I get from FB is strange:

for (;;);{"__ar":1,"payload":null}

No idea what to do with that. The referrer also seems to be the recommendation bar (which I'm using):


So, I'm also using this code to try to automatically force a POST news.reads action.

<script type="text/javascript">
  function readArticle()
        { article: '<?php the_permalink(); ?>' },
        function(response) {
           if (!response || response.error) {
              alert('Error occured');
           } else {
              alert('Article read was successful! Action ID: ' + response.id);

(you won't see this code on the site, as it's only firing for admins as of now)

I'm not getting any alerts so something is causing this to misfire...but using the recommendation bar would be preferable to us.

Anyways, any help would be appreciated.



Need Your Help

Limit/Count number of chracters in TextArea using jquery

jquery count textarea

How to count the characters what entered in text area box?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.