Button to share website link on facebook Timeline -


how can have button on webpage shares link user viewing automatically or facebook timeline? eg if or in mypage.com/aboutme link shared on or facebook timeline when clicked...

that not possible without user prior facebook authentication. if theat beforehands, then

<div id="fb-root"></div> <script type="text/javascript">(function(d, s, id) { var js, fjs = d.getelementsbytagname(s)[0]; if (d.getelementbyid(id)) return; js = d.createelement(s); js.id = id; js.src = "//connect.facebook.net/en_us/all.js#xfbml=1"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div> 

also, make sure control og:meta properties in html head

<meta property="og:image" content="http://www.mysite.me/my.png" /> <meta property="og:description" content="mycontent..." /> <meta property="og:title" content="blueflower"/> <meta property="og:type" content="article"/> <meta property="og:site_name" content="mysite.me"/> <meta property="og:url" content="http://www.mysite.me"/> 

best


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -