I have not tried communicating with the PHP facebook API for several months. Since the template packages apparently don't work now, how can I post a story in the news feed for my friends? I also already requested permission.
Edit: The problem arises because the requested permissions are not set for the user when they are granted.
While I have it
$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 looked at the "api documentation" framework several times, it just is not clear to me. I can’t say what is really outdated or not. They refer to textbooks for 2-3 years!
If you have a problem reloading the iframe application again and again, try using
$facebook->require_frame()