1
votes

i can pass custom params via actions to objects, and retrieve it in the aggregator. I see that i can also specify custom properties in this object : but how can i pass params to it?

for example , having an object like this :

<meta property="fb:app_id" content="APPID" />
<meta property="og:type"   content="myapp:myobject" />
<meta property="og:url"  content="http://www.myabsolutepath.to/object.html" />
<meta property="og:title"  content="OBJECT TITLE" />
<meta property="og:image"  content="http://www.myabsolutepath.to/img.jpg" />
<meta property="myobject:myimage"  content="{some dynamic content}" />

how can i pass values to the prop myobject:myimage , and show it in aggregator ?

For example , in Pinterest , when i Pin a board, in both pop-up description in ticker,feed and in aggregator i see custom images.

I tried with .php objects , but if i pass GET params to them, the params shown is always the default.

Hope my question is clear, Thanks in advance!

EDIT: Solved, thanks to this blog post. https://developers.facebook.com/docs/opengraph/usergeneratedphotos/ as you can see, no url parameters are required to change og:image , but post params to add an og:image array to the action ... bacause they are not parsed(by my tests) when generating open graph stories in timeline and ticker.

1
I don't understand, you set the image with the og:image tag as you did, how can you customize it more? - Nitzan Tomer
i want to have a single Object in which i can pass and display custom params. Like Pinterest do. - Davide Arcinotti

1 Answers

0
votes

You need to output this html content via a dynamic url on your server, such as using php or any other server side language.

Then, the in the url of the object you can dd parameters (http://www.example.com/object?id=453), either by querystring or using pretty urls (http://www.example.com/object/453).

The problem is that facebook cache the results for a given url, so you can't have the same url outputting different content for the same parameters since the first response will be cached.