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
Post a Comment