Talk:Fb:js-string
From Facebook Developer Wiki
Doesn't appear to be a real string. Am having trouble javascript casting it back to a number, which would be nice.
--734684833 23:24, 12 January 2008 (PST)
- Quite right. It's an object, the properties of which I don't know. It might be possible to access the string value. 605431017 20:21, 22 May 2008 (PDT)
When using a URL, specifically friends.pic_square as the value for string it renders fine in the source HTML, but in the fb parsed HTML the URL is truncated and its end value is "a6770424078_http://". Seems like a bug to me, unless URLs arent allowed here.
FB Parsed
<script type="text/javascript"> <a6770424078_fb:a6770424078_js-a6770424078_string var="friend_pics.uid">534133854</a6770424078_fb:a6770424078_js-a6770424078_string> <a6770424078_fb:a6770424078_js-a6770424078_string var="friend_pics.pic_square">a6770424078_http:// </script>
SOURCE HTML
<script type="text/javascript"> <fb:js_string var="friend_pics.uid">534133854</fb:js_string> <fb:js_string var="friend_pics.pic_square">http://profile.ak.facebook.com/profile5/1206/23/q534133854_838.jpg</fb:js_string> </script>
It would be really awesome if you could somehow pass parameters into these tags so they could be reused for a variety of different things rather than having to have one for each use case.
The examples on this page no longer seem to work. I tested them both here: http://developers.facebook.com/tools.php?fbml Article example throws this error: RUNTIME ERROR: fb:js-string: "articles.id{$article['article_id']}" is not a valid JS identifier Iframe example throws this error: RUNTIME ERROR: fb:iframe: iframes forbidden by flavor ProfileBoxFBMLFlavor
It would be helpful if we could get examples that currently function.
- I second this. I am only able to use with setInnerFBML, but the current examples suggest other options?
