PHP: Facebook stream.publish and outdated template bundles?

Posted by AFK on Stack Overflow See other posts from Stack Overflow or by AFK
Published on 2010-01-23T23:46:12Z Indexed on 2010/06/03 6:54 UTC
Read the original article Hit count: 299

Ok So I haven't tried messing with the facebook PHP API for months.. it's gross. 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()

© Stack Overflow or respective owner

Related posts about php

Related posts about php5