Many thanks for your reply.
I've read through the docs a few times, but I cannot understand how to simply echo out the title and content with no other html.
The reason I'm asking is I'd like to pull my wordpress pages into a facebook canvas page, which needs to be pointed to a url, http://www.xx.com?page_id=sample
I can use the same content for my wordpress site and facebook that way, so I dont have to update two different sites.
So if I create a page on my wordpress theme hardcoded with the page id, something like this:
$my_postid = 127;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
But it keeps generating an error saying it cant find the get function.
Any sample code/ help very much appreciated.