Flash 如何在AS3中创建共享按钮

Flash 如何在AS3中创建共享按钮,flash,actionscript-3,facebook,Flash,Actionscript 3,Facebook,我想知道是否有人知道创建AS3 Facebook共享按钮的好方法?我需要能够自定义标题,描述和图片。谢谢 这取决于你想分享什么 您可以在按钮中使用以下url: http://www.facebook.com/share.php?u=http://www.mypage.com/ 这将弹出一个页面,提示用户登录并共享他们想要共享的任何内容 您能否更准确地说明您希望用户共享什么内容?看: 要使用图片,请添加以下元标记: <meta name="title" content="my title"

我想知道是否有人知道创建AS3 Facebook共享按钮的好方法?我需要能够自定义标题,描述和图片。谢谢

这取决于你想分享什么

您可以在按钮中使用以下url:

http://www.facebook.com/share.php?u=http://www.mypage.com/

这将弹出一个页面,提示用户登录并共享他们想要共享的任何内容

您能否更准确地说明您希望用户共享什么内容?

看:

要使用图片,请添加以下元标记:

<meta name="title" content="my title" />
<meta name="description" content="my description" />
<link rel="image_src" href="images/thumbnail_image.jpg" />

有关更多信息:

给您:

重定向\u uri是必需的(并且必须重定向到facebook应用程序设置页面中定义的应用程序站点)


我只想能够共享应用程序的位置,我知道我可以按照你上面解释的方式来做,但我无法自定义标题、描述等…因为AS3无法传递元标记?嗯,非常有趣,我没有这样想。谢谢你的提示,我会检查一下,并让你知道它是如何工作的:)你如何能用这种方法分享高分?文档:和。
import flash.net.navigateToURL;
import flash.net.URLVariables;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;

share_btn.addEventListener(MouseEvent.CLICK, shareClickHandler);

function shareClickHandler(evt:MouseEvent):void
{
    var varsShare:URLVariables = new URLVariables();
    varsShare.u = 'http://domain.com/pageN.html';
    varsShare.t = 'Title Page';

    var urlFacebookShare:URLRequest = new URLRequest('http://www.facebook.com/sharer.php');
    urlFacebookShare.data = varsShare;
    urlFacebookShare.method = URLRequestMethod.GET;

    navigateToURL(urlFacebookShare, '_blank');
}
<meta name="title" content="my title" />
<meta name="description" content="my description" />
<link rel="image_src" href="images/thumbnail_image.jpg" />
var req:URLRequest = new URLRequest();
req.url = "http://www.facebook.com/dialog/feed";
var vars:URLVariables = new URLVariables();
vars.app_id = "000000000000"; // your application's id
vars.link = "http://YourSite.com";
vars.picture = "https://www.google.com/intl/en_com/images/srpr/logo3w.png";
vars.name = "name name";
vars.caption = "caption caption caption";
vars.description = "description description description";
vars.message = "message message message message message";
vars.redirect_uri = "http://YourSite.com";
req.data = vars;
req.method = URLRequestMethod.GET;
navigateToURL(req, "_blank");