Facebook API: Darunter ein Bild in die Wand posten

Entsprechend der Facebook Dokumentation alles, was ich zu tun ist, fügen Sie ein "picture" - Eigenschaft, um die post-Objekt... Aber das funktioniert nicht, hier mein code:

    [CanvasAuthorize(Permissions = "publish_stream,offline_access")]
    public ActionResult Share(string message, string link, string picture, string name)
    {
        var fb = new FacebookWebClient();
        var postArgs = new Dictionary<string, string>();
        postArgs["message"] = message;
        postArgs["link"] = link;
        postArgs["picture"] = picture;
        postArgs["name"] = name;

        fb.Post("/me/feed", postArgs);
        return Json(new {result = "success"}, JsonRequestBehavior.AllowGet);
    }

InformationsquelleAutor Kassem | 2011-06-03

Schreibe einen Kommentar