18

I rather expect that this might be impossible - but I was wonderring if it was possible to post a facebook status via passing in a URL.

Something to the effect of

 http://facebook.com/?status=<URL ENCODED STRING>  
Alex C
  • 16,624
  • 18
  • 66
  • 98
  • You might want to take a look here: http://stackoverflow.com/questions/20956229/has-facebook-sharer-php-changed-to-no-longer-accept-detailed-parameters – Johan Brodd Dec 07 '16 at 01:09

3 Answers3

43

Wow. Almost a full year since I asked this question.

As an FYI and for my own future reference, I did eventually discover how to do this.

 http://www.facebook.com/sharer/sharer.php?u=<url to share>&t=<message text>
 https://twitter.com/intent/tweet?text=<message>
 http://www.linkedin.com/shareArticle?mini=true&url=<url>&title=<title>&summary=<description>&source=<source>

Google plus does not have a good option to use this method in desktop, but you can use their mobile URL

 https://m.google.com/app/plus/x/?v=compose&content=<message>
Alex C
  • 16,624
  • 18
  • 66
  • 98
1

I found this solution useful also (here)

var facebook_url = 'http://www.facebook.com/sharer.php?'+
  'u='+encodeURIComponent('http://google.com/?q=bla')+
  '&amp;t='+encodeURIComponent('Some Page Title');
Community
  • 1
  • 1
Ed Williams
  • 2,447
  • 3
  • 15
  • 21
0

There's a builtin CURL converter in the Graph API that gets you all you need.

JustAGuy
  • 5,151
  • 11
  • 41
  • 55