Facebook and Twitter URL to post status
Is there a method that can post a status to Fa开发者_如何学编程cebook or Twitter. Twitter has this:
http://www.twitter.com/?status=This+is+the+status+that+will+be+grabbed+by+Twitter
What about Facebook?
Thanks.
I know about doing it by cURL, but I'm not asking about that :p
If you want to publish a status to facebook, you must use the HTTP POST operation. So, no, there is no GET-based URL via which you can publish an update.
In theory, you could create an HTML form that would POST. You'd need to get an auth token somehow, though.
How about this link ? http://www.facebook.com/sharer/sharer.php?u=http://yahoo.com
Additionally, With XFBML (+JavaScript SDK) you could use this to generate like and recommend box.
<fb:like href="http://www.yourdomain.com" send="true" width="450" show_faces="true" action="like" font="arial"></fb:like>
You're nearly right for twitter. Try:
http://twitter.com/?status=Your+Update+Here
Hate to say it, but I don't think it's possible with Facebook. At least, not without an application or some wizardry.
using
facebook.com/ajax/updatestatus.php?av=<user_id>pc=<pcname>
should work
Actually, you now can via
https://www.facebook.com/sharer/sharer.php?u=www.somewebsite.com
Check out http://www.sharelinkgenerator.com/ for a url generator for several social sharing sites.
Technically, I guess this prepares a post for you rather than directly posting it...
There is not an option like this for facebook. To do this, it involves writing an application using their API in order to post any type of status update.
精彩评论