1

I have an app which uses the Facebook PHP SDK. It used to be a simple matter to post to a user's Facebook wall. I would do the authentication, and then something like:

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

and on their wall the link would appear. Since Timeline was introduced, however, this doesn't seem to work. I don't get an error, I just don't get anything back. I can't find any helpful documentation on how this should work.

More info

I don't get any error, I just get "NULL" returned in $ret_obj.

If I do something like

$ret_obj = $Facebook->api('/me', 'GET');

then it works fine - I get the user's information back. So it's connecting ok, just not posting.

halfer
  • 19,824
  • 17
  • 99
  • 186
Sharon
  • 3,471
  • 13
  • 60
  • 93

1 Answers1

2

Double check that you have allowed publish_stream permission.

You can refer to PHP SDK and JavaScript SDK Feed Dialog for more examples.

Official Documentation: http://developers.facebook.com/docs/reference/dialogs/feed/

Community
  • 1
  • 1
Mysophobe
  • 622
  • 2
  • 10
  • 33