Hi
I need to have Facebook share button in Flash with ability to have my
own description and picture. I looked at many examples in net but did
not find any working example.
For example on this page from ADOBE
http://cookbooks.adobe.com/post_Facebook_share_button_in_AS3_without_external_Java-17581.html
Code
function onFBClick(e:MouseEvent) {
if(ExternalInterface.available) {
var code:XML = <script>
<![CDATA[
function shareFacebook(){
var d=document
var f='http://www.facebook.com/share'
var l="http://supergeekery.com"
var host = "supergeekery.com"
var e=encodeURIComponent
var t="SuperGeekery is blog by some guy who likes geeky things."
var p='.php?src=bm&v=4&i=1277427231&u='+e(l)+'&t='+e(t);
try{if(!/^(.*\.)?facebook\.[^.]*$/.test(host))throw(0);share_internal_bookmarklet(p)}catch(z)
{a=function() {if
(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if
(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0);
}
]]>
</script>;
ExternalInterface.call(code); }}
Result facebook page has title and description from metatages on the
url page instead of "SuperGeekery is blog by some guy who likes geeky
things" that I expected to see.
Please anybody share the code to have share button for Facebook and
Tweetter from flash with description and image link that goes from
swf. Is it possible don't use ExternalInterface and make code more
simple?
Thank you in advance.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders