Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Timeline Action Layout - No Attachment displayed

I am trying to post a Action to the Facebook Timeline using the JS API

FB.api('/me/application:action_type' + '?opject_type='+document.location.href,'post',
      function(response) {
          if (!response || response.error) {
              alert("error");
          } else {
              alert("success");
          }
      });

Posting works quite well and the API returns no error. A new activity appears at the Timeline but only as a small text within the "recent activities" box which looks like this:

enter image description here

What could be the problem if the action is not displayed like in the Attachment Preview of the Action Type Settings? Which look like this: enter image description here

I have linked all the properties from the Object Type and tested my Object URL with the Facebook Debugging Tool and it looks like all the attributes can be parsed correctly by the Facebook scraper.

I also defined a aggregation layout for the action type. So what can be the reason that no Attachment is displayed?

like image 210
alex Avatar asked Jan 11 '12 16:01

alex


2 Answers

You can see a single action attachment layout on your timeline by setting "Shown on timeline" instead of "Allowed on timeline", but by default you will never see a single action on the timeline. You will see the single action attachment in the ticker (and maybe in the news stream). If the user doesn't change the display mode You will only see aggregations on a timeline

like image 130
Stephan Alber Avatar answered Sep 17 '22 11:09

Stephan Alber


I also reported this issue as a bug to facebook. Their reply was that this behavior is by design and the attachment layout only appears in the activity log or when multiple activities have been posted to a users timeline.

like image 31
alex Avatar answered Sep 17 '22 11:09

alex