I'm making a single page site and I need to put different built-in likes on it but every like will get the og tags from the main page.
How could I pass this parameters to my POST? Something like:
FB.api(
'https://graph.facebook.com/me/og.likes',
'post',
{
'object': 'http://www.example.com',
'access_token': token,
**'Title' : 'The Title'**,
**'Description' : 'The Description'**
},
function(response) {
if (!response || response.error) {
console.log(response.error);
} else {
}
};
);
The URL you're posting the 'like' action against needs to have the correct meta tags for that URL.
It doesn't matter where you post the like action from or what URL the user is actually on when they Like that URL, but the URL you're liking must serve valid meta tags at that URL to Facebook's crawler.
You can see what the crawler is detecting for a URL via Facebook's Debug Tool