facebook - User Generated Photos in Open Graph Story not working -


using test app have user generated photos enabled on custom action i'm trying post using javascript api.

why code consistent documentation return error below ? fb.api('me/namespace:custom_action',
'post',
{
image:[{ url :"http://example.com/1.jpg", user_generated : true}],
product: "http://example.com/view/10"
},

error: (#3503) "[{"url":"example.com/1.jpg","user_generated":true}]" invalid value property "image:url" type "url"

and posting same code, images(plural) rather image, executes successfully. why user generated image not show in published story ?

when image property names enclosed in quotes story posts & displays successfully

fb.api('me/namespace:custom_action',
'post',
{
'image[0][url]': "http://example.com/1.jpg",
'image[0][user_generated]': true
product: "http://example.com/view/10"
}


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -