Facebook API: how to update status?

How can I update my tatus posts on facebook via API?

There are many examples online, but they all seem to be deprecated from the new Facebook API.

Hello!

+4
source share
3 answers

The status message is now only a message. Therefore, you use the Graph API to publish a message to the user. You just need to do an HTTP POST for http://graph.facebook.com/PROFILE_ID/feed . The body of the POST must contain a value for the message. If you want to change the status, you must set this message. Here is how you could do it with curl.

curl -F 'access_token=...' \ -F 'message=Check out this funny article' \ https://graph.facebook.com/me/feed 

Further information on this can be found here: http://developers.facebook.com/docs/reference/api/post

+2
source

Using javascript api sdk graphics is also possible

  FB.api('/me/feed', 'post', { message: body }, function(response) { if (!response || response.error) { alert("error"); } else { alert("Status posted"); } 

Source - LINK

+1
source

// Get the access token and secret.and check if the code in your state is valid, than write below

 url = "https://graph.facebook.com/me/feed?access_token=" + oAuth.Token; json = oAuth.WebRequest(oAuthFacebook.Method.POST, url, "message=" + msg); 
0
source

All Articles