I have a JavaScript function which have been used to post something to the wall of the current user. But when I go to a Page (Fanpage), which I am the admin of, it’s:
function postToWall(id, title, desc, href, image, caption)
{
FB.ui(
{
method: 'feed',
app_id: social_app_id,
name: title,
link: href+'?ref='+social_user_id,
picture: image,
caption: caption,
description: desc
},
function(response) {
// nothing to do here
}
);
}
But I got the error:
An error occurred with My App Name. Please try again later.
How can I post to the admin wall to include tile, desc, image, and caption?
You should specify both
fromandtoparameters forFeed Dialog.If
fromandtois the same idtocan be skipped since it’s defaults tofromvalue.Update:
You can fill
fromandtowith id of your Facebook Page and post as Page itself, not just Admin of Page