我目前正在开发一个基本的 Adobe Air Flash 应用程序,它可以让用户使用计算器。一旦用户完成了计算器,我就会将值存储在一个变量中。
现在我要做的是:
1)有一个按钮让用户登录到facebook
2) 将默认消息发布到他们的墙上(他们不需要能够编辑或输入消息)
3)注销
我发现很难从他们那里找到任何资源来提供帮助。无论如何,我也不是高级程序员,非常感谢您的帮助!另外,我在 Flash 中工作,如果有什么不同的话,我不会使用 flex
编辑:为什么这会收到 2 张反对票?至少提供一些反馈,让我知道如何改进我的提问,或者为什么我在你眼中做错了
最佳答案
var appId:String = "APP ID HERE";
var messageTitle:String = "title for the message";
var messageUrl:String = "Link to the application";
var messageDescript:String = "Whatever you'd like to say";
var appThumb:String = "Thumbnail here";
var redirectUrl:String = "Once a user shares the link, where to redirect them - for me this is facebook again so they can log out";
var URLString:String = "https://www.facebook.com/dialog/feed?app_id="+projectApId+"&link="+messageUrl+"&picture="+projectThumb+"&name="+messageName+"&description="+messageDescription+"&redirect_uri="+redirectUrl;
function shareIt(){
var req:URLRequest = new URLRequest(URLString);
try{ navigateToURL(req,"_blank"); }
catch (e:Error){ trace(">> ERROR <<", e.message); }
}
我很惊讶我找不到它,或者没有通过这里得到答案,考虑到最后它是如此简单:)
关于android - 从 Adobe Air android 应用程序发布到 facebook 墙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10871594/