I haven’t tried messing with the facebook PHP API for months. Since template bundles are apparently now defunct, how can I publish a story into my users news feed for their friends? I’ve also already requested permissions.
Edit: The issue seems to arise from requested permissions not being set for the user when They are granted.
So far I have this
$appapikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$appsecret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$facebook = new Facebook($appapikey, $appsecret);
$fb_user = $facebook->require_login();
try {
$facebook->api_client->feed_publishUserAction();
} catch(Exception $e) { }
Edit: I’ve looked through the facebook “api documentation” multiple times it’s just not clear to me. I can’t tell what’s actually deprecated or not. They link to tutorials 2-3 years old!
If you have a problem with your iframe application reloading over and over and over try using
$facebook->require_frame()
Have you already looked up the topic on the facebook wiki? http://wiki.developers.facebook.com/index.php/Stream.publish
There’s a nice example which should help you out. If not, you’ll have to describe your problem more accurate.
EDIT: You can check and request for the permissions like this (and also request them)