Nope, actually this still isn't solved. Although the full URL including tiddler is passed to facebook, facebook got stuck on one tiddler. Every "like"-action counted towards that tiddler then and accordingly showed that tiddler's link on Facebook.
Apparently Facebook has some problems dealing with several buttons on one page correctly. On Nov 15, 6:43 pm, Kolya33 <[email protected]> wrote: > I've basically figured this out now. The likes on the Facebook.com > profile still show up as the tiddlywiki-title but the links there > work. I'll see if I can fix it, but for today I've had enough of this. > > <script> > if (!window.story) window.story=window; > var url=store.getTiddlerText("SiteUrl"); > var title=story.findContainingTiddler(place).id.substr(7); > var permalink=encodeURIComponent(String.encodeTiddlyLink(title)); > var fu=url+'%23'+permalink; > > return "<html><iframe src='http://www.facebook.com/plugins/like.php? > href="+fu+"&ref="+fu > +"&layout=button_count&show_faces=false&width=90&action=like&font=tahoma&colorscheme=light&height=21' > scrolling=no frameborder=0 style='border:none;overflow:hidden;width: > 90px;height:21px;float:left;' allowTransparency='true'></iframe></ > html>"; > </script> > > On Nov 15, 5:27 pm, Kolya33 <[email protected]> wrote: > > > Even if replacing # for _ or ? would work to separate URLs on > > Facebook, it breaks the link. > > > On Nov 15, 4:54 pm, rakugo <[email protected]> wrote: > > > > Try > > > var fu=url+"_"+permalink; > > > or > > > var fu=url+"?"+permalink; > > > > I would hope it would recognise the url even if it is not real.... > > > > Let us know how you get on. I would be interested in your results. > > > Jon > > > > On Nov 15, 3:32 pm, Kolya33 <[email protected]> wrote: > > > > > I've got a tiddler named "facebookLike" with this content: > > > > <script> > > > > if (!window.story) window.story=window; > > > > var url=store.getTiddlerText("SiteUrl"); > > > > var title=story.findContainingTiddler(place).id.substr(7); > > > > var permalink=encodeURIComponent(String.encodeTiddlyLink(title)); > > > > var fu=url+"#"+permalink; > > > > return "<html><iframe src='http://www.facebook.com/plugins/like.php? > > > > href="+fu > > > > +"&layout=button_count&show_faces=false&width=400&action=li > > > > ke&font=tahoma&colorscheme=light&height=21' > > > > scrolling=no frameborder=0 style='border:none; overflow:hidden; width: > > > > 400px; height:21px;' allowTransparency='true'></iframe></html>"; > > > > </script> > > > > > "facebookLike" then gets called in ViewTemplate: <div macro='tiddler > > > > facebookLike'></div> > > > > All fine. Except that Facebook apparently does not accept anchors as > > > > separate URLs, so the "Like" button is always for the complete site > > > > and not individual tiddlers. > > > > > Any ideas on how to fool Facebook into accepting anchors would be > > > > appreciated. > > > > > I based the code on <a href="http://twhelp.tiddlyspot.com/ > > > > #TiddlerBookmark">TiddlerBookmark </a> and the <a href="http:// > > > > developers.facebook.com/docs/reference/plugins/like#">Facebook button > > > > generator</a>. > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

