Live data from Hacker News

Ask HN: Is there an easy way to post to Facebook as you can to twitter?

news.ycombinator.com

1–6 of 6 posts

Re: Ask HN: Is there an easy way to post to Facebook as you can to twitter?

#2
Bookmarklet for Sharing on Facebook (I guess that one is FF specific):

  javascript:var%20d=document,f='http://www.facebook.com/share,l=d.location,e=encodeURIComponent,p=.php?src=bm&v=4&i=1255717032&u=+e(l.href)+&t=+e(d.title);1;try{if%20(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z)%20{a=function()%20{if%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if%20(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)

Re: Ask HN: Is there an easy way to post to Facebook as you can to twitter?

#3
post #2

Bookmarklet for Sharing on Facebook (I guess that one is FF specific): javascript:var%20d=document,f='http://www.facebook.com/share,l=d.location,e=encodeURIComponent,p=.php?src=bm&v=4&i=1255717032&u=+e(l.href)+&t=+e(d.title);1;try{if%20(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z)%20{a=function()%20{if%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=6…

How do you share a url with an arbitrary message?

http://www.facebook.com/sharer.php?u= to share>&t=

I tried changing the title above but Facebook ignores my change.

Re: Ask HN: Is there an easy way to post to Facebook as you can to twitter?

#5
post #3
post #2

Bookmarklet for Sharing on Facebook (I guess that one is FF specific): javascript:var%20d=document,f='http://www.facebook.com/share,l=d.location,e=encodeURIComponent,p=.php?src=bm&v=4&i=1255717032&u=+e(l.href)+&t=+e(d.title);1;try{if%20(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z)%20{a=function()%20{if%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=6…

How do you share a url with an arbitrary message? http://www.facebook.com/sharer.php?u= to share>&t= I tried changing the title above but Facebook ignores my change.

Clicking the little bookmarklet in my browser pops up a window that allows me to add a message. I would say make the bookmarklet, click it, then see what message it sends to the server.