Android 使用as3将照片从flash mobile项目上传到Facebook

Android 使用as3将照片从flash mobile项目上传到Facebook,android,facebook,actionscript-3,flash,photo-upload,Android,Facebook,Actionscript 3,Flash,Photo Upload,我目前正在开发android应用程序。。。 我想从我的应用程序上传照片到facebook 我正在用这个。。但这是为了分享链接。。。我想要的是上传的照片和信息,只有用户可以看到整个帖子的消息。 请帮帮我 下面是我的代码: var appId:String = appId; var messageTitle:String =title; var messageUrl:String = link; var messageDescript:String =

我目前正在开发android应用程序。。。 我想从我的应用程序上传照片到facebook

我正在用这个。。但这是为了分享链接。。。我想要的是上传的照片和信息,只有用户可以看到整个帖子的消息。 请帮帮我

下面是我的代码:

var appId:String = appId;
        var messageTitle:String =title;
        var messageUrl:String = link;
        var messageDescript:String = message;
        var appThumb:String = imageUrl;
        var redirectUrl:String = "https://www.facebook.com";

        var URLString:String = "https://www.facebook.com/dialog/feed?app_id="+appId+"&link="+messageUrl+
                                "&description="+messageDescript+"&name="+messageTitle+"&picture="+appThumb+
                                "&redirect_uri="+redirectUrl;

        var req:URLRequest = new URLRequest(URLString);

        try{navigateToURL(req,"_blank"); }

        catch (e:Error){ trace(">> ERROR <<", e.message); } 

你可以在Facebook上使用AS3 API,这会让你的工作更轻松

FB初始化和FB登录后,u可以使用此代码

var params:Object = { url:url, message:description, fileName:url_or_filename};
Facebook.api('me/photos', Function_callback , params , 'POST');
但是如果你只想使用图形URL,你需要这个方法https://graph.facebook.com/USER_ID/photos. 您可以查看有关POST照片的更多信息和参数

希望这有帮助