How to call stream_publish on a child Facebook app using the Facebook PHP API
$facebook = new Facebook($childApiKey, $sessionSecret);
$facebook->api_client->session_key = $sessionKey;
$facebook->api_client->use_session_secret($sessionSecret);
$facebook->api_client->stream_publish('Hello!');
where $sessionKey and $sessionSecret appear in $_COOKIE['[apiKey]_session_key'] and $_COOKIE['[apiKey]_ss'].
4 Comments:
I get the latest php SDK from github, but I couldn't find "api_client" method.
Are there any idea to update child application ?
Unfortunately the new Facebook SDK does not seem to have support for child applications.
Thank you for your reply.
I got other library from code.google.com.
I'm concerned about whether facebook deprecate the idea for child application through the old php SDK or not in the near future.
Or already announced officially about that ?
I am not sure if there is an official announcement about it, but I would recommend preparing for support for this feature to end sometime in the future, just in case.
Post a Comment
<< Home