Facebook Posting API Question -
Right now I'm trying to post a media file in a media file on my site.
I was working on the old API earlier, but now I am trying to work on it and I have a problem.
I'm driving this
$ facebook-> API_client- & gt; Stream_light ($ message, $ attachment, $ action_link);
Is this an old API or new one? Because I'm getting this error
A member function in stream_publish () on a non-object call
I was reading a tutorial and he said API ('/ m / feed', 'post', array ('message' => gt; 'message', 'cb' = ';' '));
But how can I post an attachment / action link using that?
Thank you! First of all, do not confuse the API with SDK. The latest PSP SDK's new graph API and old restore. The API is capable of communicating with both.
and are using the new SDK, because Facebook :: $ Api_client
is not present in the new SDK .
Secondly, as is common with most tutorials, they only show you a snapshot of the full features of the system They are.
$ facebook-> API (arrays) ('method' = & gt; 'stream.publish', 'target_id' => gt; $ facebook- & gt; GetUser (), 'message' = & gt; $ message, 'attachment' = & gt; $ attachment, 'action_links' = & gt; $ action_links));
Comments
Post a Comment