Steven
Steven

Reputation: 1979

Posting on another user's wall using Feed Dialogue and Javascript API

I'm trying to allow the current user to post to another user's wall using the feed dialogue and JavaScript API. I'm using the following code but its prompting the user to post to his own wall and not to the target user's wall:

var obj = {method: 'feed', to: targetId, name: name, description: description, link: link, caption: caption, picture: pictureLink, ref: ref};
FB.ui(obj, callback);

Upvotes: 0

Views: 489

Answers (1)

RC-1290
RC-1290

Reputation: 595

Perhaps targetId does not properly cast to a string, or perhaps it does not contain a valid id.

You could test it, by providing a string literal with a valid id, in stead of a variable.

Upvotes: 1

Related Questions