Welcome Guest, Not a member yet? Register   Sign In
Issues with Facebook Connect plugin
#1

[eluser]mwolf[/eluser]
I'm using the facebook connect plugin by Elliot Haughin and I got the basic connect working fine, but now I'm running in to issues when trying to call certain methods from the facebook api. Below is the code i'm trying to use:

Code:
$has_permission = $this->facebook_connect->client->users_hasAppPermission("publish_stream");

if(!$has_permission){
    echo "<br /><fb:prompt-permission perms=\"publish_stream\">Publish results on your wall!!</fb:prompt-permission>";
}else{
    $this->facebook_connect->client->stream_publish($message);
}
    $this->load->view('fbtest', $data);
}

And this is the error:

Fatal error: Call to undefined method FacebookRestClient::users_hasAppPermission()

Any idea why this isn't working?

http://developers.facebook.com/docs/?u=f...Permission
#2

[eluser]Shay Falador[/eluser]
First try to replace your facebook API with the last one out, from here: http://wiki.developers.facebook.com/index.php/PHP.




Theme © iAndrew 2016 - Forum software by © MyBB