Post to facebook status with a URL / GET request? (or post)

后端 未结 3 348
感动是毒
感动是毒 2020-12-23 22:40

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

相关标签:
3条回答
  • 2020-12-23 23:01

    I found this solution useful also (here)

    var facebook_url = 'http://www.facebook.com/sharer.php?'+
      'u='+encodeURIComponent('http://google.com/?q=bla')+
      '&t='+encodeURIComponent('Some Page Title');
    
    0 讨论(0)
  • 2020-12-23 23:02

    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>
    
    0 讨论(0)
  • 2020-12-23 23:11

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

    0 讨论(0)
提交回复
热议问题