Friday, 6 September 2013

Post dailog on facbook wall and facebook page

Post dailog on facbook wall and facebook page

i am using facebook sharing api that post dailog on user wall after user
login.. for example user come my site and like some thing and it share on
his facebook wall.. but now i need when user share this on his wall then
at a time same discription will be share on facebook page that i made for
my website .. so it is possible at a time same share post on user wall and
a facebook page ?
i am using facbook SDK sharing Api ..
FB.init({appId: "my app id" status: true, cookie: true});
var obj = { method: 'feed',
link: 'http://example.php',
picture: 'http://example.php/images/logo.png',
name: 'Rate the best Brewery in town',
message:'helloo how are you ??',
caption: 'drinkbeer.in',
description: 'I just gave a thumbs up to ('+shop_name+')
on DrinkBeer.In/Asheville What is your favorite place?
Vote NOW!!'
};
function callback(response) {
if (response && response.post_id) {
alert(response.post_id);
} }

No comments:

Post a Comment