Reputation: 2887
In twitter it's possible by doing: https://twitter.com/intent/tweet?text=THIS IS MY MESSAGE IT NEEDS ENCODING
Then it will bring up twitter with that message, and let you choose whether or not you want to tweet it.
I was wondering if there's a similar way with facebook posting a message through a link?
Thanks! -Tim
Upvotes: 0
Views: 88
Reputation: 14314
Yes - and you don't need an app registered to do so! The only down side, is that you have to include a URL.
The query is simply:
https://www.facebook.com/sharer/sharer.php?u=<URL>&t=<text>
For example - https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fshkspr.mobi%2Fblog%2F&t=Check%20out%20this%20cool%20blog
Both the URL and the text will have to be URL encoded. As I said, it won't work without a URL.
Upvotes: 1
Reputation: 20753
Yes, you have the Feed Dialog that does the same. But of course you must have an app registered on http://developers.faceboof.com/apps.
URL Redirection:
https://www.facebook.com/dialog/feed?
app_id=145634995501895
&display=popup
&caption=An%20example%20caption
&link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F
&redirect_uri=https://developers.facebook.com/tools/explorer
(replace app_id
and redirect_uri
with that of yours)
For the list of available parameters, check here
Upvotes: 1