Hi
I had previously asked about checking for publish action permissions when a user that has already connected logs into my site since im trying to publish achievements. See link below. I could not continue on that threads seems locked.
www.sourcecoast.com/forums/jfbconnect/jf...-publish_actions#top
I had not looked back at the post since I just deleted my fb user account and created a new one on the site which prompted me for permissions on connecting. However I would still like that previous users who have not been granted permissions be prompted for this again.
Is it possible to do something like this when logging in?
Where in the jfbconnect code could this be optimally implemented?
I've noticed this code
$permissions = $facebook->api("/me/permissions");
if( array_key_exists('publish_stream', $permissions[0]) ) {
// Permission is granted!
// Do the related task
$post_id = $facebook->api('/me/feed', 'post', array('message'=>'Hello World!'));
}
else { // We don't have the permission
// Alert the user or ask for the permission! header( "Location: " . $facebook->getLoginUrl(array("scope" => "publish_stream")) );
}