次の行にエラーUncaught SyntaxError: Unexpected number
が表示されます。
image[0][url]:photourl,
完全なコードは次のとおりです。
function photoToPage(page)
{
FB.api('/'+page.id+'/clubinfophotos:shares',
'post',
{
image[0][url]:photourl,
image[0][user_generated]:true,
access_token: page.access_token,
message:msg
},
function(res) { console.log('Photo posted successfully'); }
)
}