Hi guys, I just started coding my app yesterday but I hope you can help me out. I dont know why it keeps giving me out these error when I execute this code: $facebook->api_client->profile_setFBML("text", $user); $facebook->redirect($facebook->get_facebook_url() . '/profile.php'); Thats the error msg: Fatal error: Call to a member function profile_setFBML() on a non-object in /home/.user/index.php Both functions give out errors which I think are mentioning that I am trying to use a function, that doesnt exist. But why doesnt it exist? I have included the appinclude.php and the facebook.php is included there also. Both seem to be included correctly too. I am out of answers and the forum doesnt help me out a lot on that too, any hints please? smile Thanks!
$string = "PHP String"; $fbml = <<<EndHereDoc TEXT<Br> $string EndHereDoc; $facebook->api_client->profile_setFBML($fbml, $user); $facebook->redirect($facebook->get_facebook_url() . '/profile.php'); PHP: You can't run PHP code within the endheredoc, but it will echo strings.
yeah, im using the correct php version and it includes the libraries (tested it by making an echo in the facebook.php file) [quote andy] im not running any php commands there.. I dont know what this is happening [/quote]
This is the ultimate basic facebook app: http://www.swansoninternet.com/book/part1.zip It's actually the first example from the book i'm writing but you can take a look at the app code if you like.