Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook: Open graph actions not aggregating

I am working on a facebook open graph application that will allow users who log in & authenticate with my site to have an aggregation of "recently read" articles on their facebook timeline.

I have created the aggregation and adding preview objects seems to work and it appears appropriately in the "timeline preview" area. Publishing the action works and it appears in the activity log (though not in the timeline unless I manually tell it to show up there).

Using facebooks url scraper, it appears that my links are working fine and all meta tags that are expected do indeed appear, but again - no aggregation.

I have posted probably 8 or 9 stories with my app so far and still, no aggregation.

Here is some code..

Facebook Log-In

$('.facebook-login').click(function() {
        var loginBool = $(this).hasClass('loginfb');

        if (!loginBool) {
            FB.logout(function(response){
                if (response.authResponse) {
                    updateStatus();
                }
            });
        }
        else if (loginBool) {
            FB.login(function(response){
                if (response.authResponse) {
                    updateStatus();
                }
            }, {scope: 'user_about_me,user_birthday,user_interests,user_likes,user_location,read_stream,email,publish_actions,publish_stream'});
        }
    });

FB.app share code

$('.read-action').click(function() {
    FB.api('/me/news.reads', 'post',{
        article : window.location.href
    }, function(response){ console.log(response)} );
});

Publishing an action logs the action ID the javascript console and like I said, it shows up in the activity log and I can see it on my timeline after allowing it to show up there.

The aggregation is set up as such:

Data to display: Read

Layout Display: List

Is there something I am doing patently wrong, or what are the steps needed to get my posts to aggregate?

like image 745
Jacob Avatar asked Oct 21 '22 20:10

Jacob


1 Answers

I had the same problem with other build-in actions. It looks like custom aggregations aren't allowed for build-in action types. But build-in aggregations are sane enough.

like image 86
Leonid Beschastny Avatar answered Oct 25 '22 19:10

Leonid Beschastny