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.

