facebook - Post to friends timeline using the feed dialog example c# api -
i trying post on friend's timeline , maintain on getting error every time seek it. code using below. wonder if code correct? cause doesn't work me. can help?
dynamic parameters = new expandoobject(); if (!string.isnullorempty(action.post.picturelocalsource)) { var picturetracking = getnextphotofromfolder(action.post.picturelocalsource); if (picturetracking != null) { // action.post.picture = picturetracking.fbpictureref; // org action.post.link = picturetracking.fbpictureref; action.post.picture = picturetracking.trackingfilename; parameters.type = ""; } } parameters.to = action.facebookposttargetid; //parameters.add("from", myfacebookid); parameters.message=action.post.message.trim(); parameters.link = action.post.link; parameters.picture = action.post.picture; parameters.source = action.post.source; parameters.name = action.post.name; string caption = action.post.caption; if (caption.length > 200) caption = caption.substring(0, 200); parameters.caption = caption.trim(); // "Σχετικά με το asfame.gr"; parameters.description=action.post.description; string feedtype = ""; if (action.type == actiontype.comments) feedtype = "comments"; else feedtype = "feed"; parameters.method = feedtype; result = client.post(parameters);
facebook has removed ability post on friends wall 6th feb,2013. checkout official doc here http://developers.facebook.com/roadmap/completed-changes/ under subsection removing ability post friends walls via graph api feb 6, 2013 changes. hope helps.
facebook facebook-c#-sdk friend facebook-timeline
No comments:
Post a Comment