Click here to Skip to main content
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)



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