lundi 17 novembre 2014

Share Facebook Fan page via OpenGraph (Web)


Vote count:

0




So i have a button in my web that it's used to share a webpage, i want to share a Facebook fan page, but i got this error: "Like actions are not yet supported against objects of this type."


this is my code:



FB.ui({
display: 'popup',
method: 'share_open_graph',
action_type: 'og.likes',
action_properties: JSON.stringify({
object: og_url
})
}, function (response) {
if (response) {
console.log(response);
}
});


og_url is a var, if i change it for a non Facebook fan page it works as normal.


I already have a solution using FEED.:



FB.ui(
{
method: 'feed',
name: og_title,
link: og_url,
picture: og_image,
caption: og_site_name,
description: og_description
},
function (response) {
if (response && response.post_id) {
console.log()('Post was published.');
} else {
console.log('Post was not published.');
}
}
);


The feed method works with any kind of webpage, but i really want to do it by Open Graph, can some one help me. please!


Thank you!



asked 37 secs ago







Share Facebook Fan page via OpenGraph (Web)

Aucun commentaire:

Enregistrer un commentaire