开发者

Add share_dialog box in a post message [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I have a problem when I post a message on my profil, I create an action link nammed "share" which create a shared_dialog box. However it doesn't work... When I click on my "share" link it's running again and again and then I press F5 key to refresh I got my dialog box in a page insted of an iframe ... Is there anybody to help me ? Thanks by advance.

    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 = "A开发者_运维问答LL_FRIENDS",
    };
    parameters.targeting = new {
        countries = "US",
        regions = "6,53",
        locales = "6",
    };
    dynamic result = client.Post("me/feed", parameters);


Ok, I finally find another solution which did the same thing

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜