Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  10] [ 7]  / answers: 1 / hits: 32960  / 14 Years ago, sun, january 9, 2011, 12:00:00

I'm using FB.ui to post to a Facebook user wall. However, I am uncertain on which parameters to use to post to a Page or Application wall. Any links?



I am trying to post to the Page wall as that page, not as the user's account.



Code to post to user account:



 FB.ui(
{
method: 'feed',
name: name,
link: link,
picture: picture,
caption: caption,
description: redemption,
message: message
},
function (response) {
if (response && response.post_id) {
alert(response.post_id);
} else {

}
}
);

More From » facebook

 Answers
49

Got it:



you have to set the to and from values:



FB.ui(    {
method: 'feed',
name: name,
link: link,
picture: picture,
caption: caption,
description: redemption,
message: message,
to: page_id,
from: page_id
},
function (response) {
if (response && response.post_id) {
alert(response.post_id);
} else {

}
}
);

[#94319] Thursday, January 6, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cristian

Total Points: 132
Total Questions: 98
Total Answers: 98

Location: Guam
Member since Tue, Nov 29, 2022
2 Years ago
;