问题
I've create a Custom Object/Action/Aggregations for my app.
https://graph.facebook.com/10151038251679973
All is working fine but now I wanted to add custom properties for my object.
I've successfully added two properties: when and facility.
The problem is that when I share the object (i.e. posting the link on my wall) the custom properties does not show up.
Any idea? I have to do some additional configurations?
回答1:
Custom properties are not showed for just posted object, but you can display 'em with your actions. You should specify something like {match.when}
in the "Caption" field in Action Settings (Configure story attachment section):
Once action referencing match
object (and caption as described above) published you will see something like this:
BTW, Some notes regarding warnings you see in debug tool related to Date format:
Currently where is no way to get rid of that message other that provide numeric timestamp
instead of ISO 8601
date (none of samples or formats described for DateTime in Simple Types are working without a warning) . The good news that date is updated correctly even if warning displayed, so you may ignore such warning as long as timestamp
displayed in Object Properties of Debug Tool output is correct and represent your actual date. There is couple of bugs exists for that issue: #159315504193810 and #302542186507947
回答2:
See the Facebook Debugger output here:
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.sportilia.com%2Fg%2Fpartite%2F183%3Ffb_utente%3D5
Looks like your date format might be messing things up.
回答3:
The problem is that when I share the object (i.e. posting the link on my wall) the custom properties does not show up.
I’m not sure if they are supposed to show up when you only share a link to the object on your wall.
Have you tried publishing an action for your object? When that creates a story, they should show up in there.
Go into your app settings, edit the object, and on the bottom have a look at the preview object (might have to create one first, if there’s no preview object yet). Edit it, add some values for your custom properties to it – they should show up there (at least that’s what I’m seeing when testing it with one of mine).
来源:https://stackoverflow.com/questions/11011690/opengraph-custom-properties-not-showing-in-post