当我在profil上发布消息时遇到问题,我创建了一个动作链接nammed“share”,它创建了一个shared_dialog框。然而它不起作用...当我点击我的“分享”链接时,它一次又一次地运行然后我按F5键刷新我在iframe的页面中得到了我的对话框... 有人帮我吗? 先谢谢。
var client = new FacebookClient("my_access_token");
dynamic parameters = new ExpandoObject();
parameters.message = "Check out this funny article";
parameters.link = "http://www.example.com/article.html";
parameters.picture = "http://www.example.com/article-thumbnail.jpg";
parameters.name = "Article Title";
parameters.caption = "Caption for the link";
parameters.description = "Longer description of the link";
var actions = new Dictionary<String, Object>();
actions["name"] = "share";
actions["link"] = "http://www.facebook.com/dialog/feed?"
+ "app_id=" + settings.AppId
+ "&display=" + "iframe"
+ "&redirect_uri=" + "http://www.exemple.com/test/"
+ "&link=http://developers.facebook.com/docs/reference/dialogs/"
+ "&picture=http://fbrell.com/f8.jpg"
+ "&name=Ma%20Dialog%20Box"
+ "&message=Hey"
+ "&description=Test";
parameters.actions = actions
parameters.privacy = new {
value = "ALL_FRIENDS",
};
parameters.targeting = new {
countries = "US",
regions = "6,53",
locales = "6",
};
dynamic result = client.Post("me/feed", parameters);
答案 0 :(得分:0)
好的,我终于找到另一个做同样事情的解决方案