Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I've implemented FB timeline integration,i've posted successfully on timeline using below code:

C#
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:
C#
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)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900