Timeline Position Layout - No Attached Image

I am trying to post an action on 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"); } }); 

Publishing works pretty well and the API does not return an error. A new action appears on the timeline, but only in the form of a small text in the "last action" field, which looks like this:

enter image description here

What could be the problem if the action is not displayed, as in the preview window of the settings for the type of action? Which looks like this: enter image description here

I linked all the properties from an object type and tested my object URL using the Facebook Debugging Tool and it looks like all attributes can be correctly analyzed by the Facebook scraper.

I also defined an aggregation layout for the type of action. So what could be causing the lack of binding?

+7
source share
3 answers

I also reported this issue as a bug for facebook. Their answer was that this is a design behavior , and the attachment layout is displayed only in the activity log or when several events were sent to the users timeline.

+1
source

On the timeline, you can see one layout of the attachment of actions by setting "Show on the timeline" instead of "Allowed on the timeline", but by default you will never see any actions on the timeline. You will see one action in the ticker (and possibly in the news stream). If the user does not change the display mode, you will see only clusters on the timeline

+2
source

Did you set object parameters on your web page? For example:

 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# app: http://ogp.me/ns/fb/app#"> <meta property="fb:app_id" content="123" /> <meta property="og:type" content="app:action" /> <meta property="og:url" content="http://www.example.com/" /> <meta property="og:url" content="http://www.example.com/" /> <meta property="og:title" content="Testing Title" /> <meta property="og:description" content="testing Description" /> <meta property="og:image" content="http.example.com/image.jpg" /> 

You will need to get the correct code from the website of the Facebook developers, but it is important that you create your object so that Facebook can get the parameters from its web page.

You can test it by simply going to aggregations-> preview-> add-action, and in case just paste the web page. You will immediately see if it will work.

0
source

All Articles