Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook status update URL

Does Facebook provide a URL the user can access that will take him to his profile page with the "What's on your mind" box auto completed with a value provided in the URL? I need something like "http://facebook.com?status=This is my new status message".

like image 508
dandu Avatar asked Mar 19 '10 00:03

dandu


People also ask

How do you add a link in a Facebook status update?

Click inside the text field marked "What's on Your Mind," which is located right above your Facebook wall. Type the status update that you want to include with the link. Type or paste the URL of the Web page that you want to share into the text field. Include the "http://" section of the URL.

What is Facebook's URL?

Your Facebook URL is simply the name of your page placed right after the web address of Facebook.


2 Answers

Use FB.Connect.streamPublish, like so:

FB.Connect.streamPublish("I just visited dandu's website!");

Of course, this means creating an application and loading the Facebook Connect JS libraries in your website, check their docs for how to do that (setting up can be a daunting task). The advantage of doing so is that you don't need extended permissions. However, the user will be prompted and will have the choice of not updating their status through your app.

AFAIK, there's no simple URL to set a user's status (like twitter has), just the "sharer.php", which doesn't take a status message.

like image 153
Felix Avatar answered Nov 15 '22 21:11

Felix


It appears you'll have to authenticate as described on the REST api documentation for status.set: http://wiki.developers.facebook.com/index.php/Status.set

I couldn't find another option, and since they require you to authenticate for that method, it is reasonable to assume they'll require you to authenticate for any api that lets you update the status.

like image 34
Ken Pespisa Avatar answered Nov 15 '22 21:11

Ken Pespisa