I've implemented FB timeline integration,i've posted successfully on timeline using below code:
FB.api('/me/_recpbox:cook', 'post', { recipe: 'http://samples.ogp.me/187362391384273' }, function (response) {
if (!response || response.error) {
alert(response.error.message);
} else {
alert('Post ID: ' + response.id);
}
});
here the URL comes from fb app settings,(The Open Graph Dashboard page has a 'Get Code' link next to your action)
I have to give my own path and Image,currently the image appearing is the one i've set for my app,can any1tell how can i give my own URL and Image. i have tried givinga my website path but it says:
Object at URL has og:type of 'website'. The property 'recipe' requires an object of og:type
Or can any 1 provide me sample code of this(I've read
this[
^] article)