Question

I have just about got the Facebook connect working on my site. I am able to log in and PHP has all the users details. I would now like to post a status when a user logs in with the Facebook connect.

I have searched everywhere on how to do this, tried lots of code. And I'm still unable to get anywhere with it. Please be very specific with me as I am new to the Facebook Connect.

Was it helpful?

Solution

It sounds to me like you're looking for the Javascript Facebook SDK. More info about publishing to the stream through javascript can be found at http://developers.facebook.com/docs/reference/javascript/FB.ui.

OTHER TIPS

Have you tried this, from the documentation, on the Publishing section?

You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs, using an access token on behalf of the user or an application access token (for Open Graph Pages). For example, you can post a new wall post on Arjun's wall by issuing a POST request to https://graph.facebook.com/arjun/feed

EDIT

Snipped from this part of the documentation:

If you have an authenticated user with the publish_stream permission, and want to publish a new story to their feed:

var body = 'Reading Connect JS documentation';
FB.api('/me/feed', 'post', { body: body }, function(response) {
  if (!response || response.error) {
    alert('Error occured');
  } else {
    alert('Post ID: ' + response);
  }
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top