Click here to Skip to main content
11,567,325 members (48,773 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MVC3 FacebookAPI
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)
Posted 17-Apr-12 23:44pm

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

  Print Answers RSS


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 18 Apr 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100