Facebook PHP SDK post activity

I am trying to post to a users Activity feed on Facebook using the PHP SDK, is this possible? Or only with Javascript?

Here is my basic code to post to a users wall:

$facebook->api('/me/feed', 'POST',
         'link' => 'www.example.com',
         'message' => 'Posting with the PHP SDK!'

I want to post to a users activity, how is this done? I've experimented with the code below but to no success.

$facebook->api('/me/application:view', 'POST',
             'item' => 'www.example.com',

Can anyone shed any light on this?


I'm not using opengraph in my apps right now, but hope this helps: https://developers.facebook.com/docs/opengraph/tutorial/#publish

Also check this answer (there is an example in PHP): https://stackoverflow.com/a/11383901/173299

Hope it helps you.

Need Your Help

c# asp.net Form with a submit button and a button that executes a command?

c# asp.net button form-submit

basically i have a form with the runat server tag. within this form i have an asp repeater and asubmit button- but i also want to have a button which will call a c# method in my code - can someone ...

Is there any way to create form with multiple submit buttons on Spring MVC using annotations?

forms spring-mvc annotations

I'm trying to create simple add/remove form using annotation based Spring MVC.