c# - Posting to a friends wall with exception -
the exception getting "the user hasn't authorized application perform action". know published exception there no rules can follow code work. trying post friends wall via api.
authenticationresult result = oauthwebsecurity.verifyauthentication(url.action("externallogincallback", new { returnurl = returnurl })); string accesstoken = result.extradata["accesstoken"]; facebookclient client = new facebookclient(accesstoken); dynamic parameters = new expandoobject(); arameters.message = "testing";
i have managed friends facebook ids , facebookfriendid
object restest = client.post("/" + facebookfriendid + "/feed", parameters);
this throwing exception. need set special options in app allow post friends walls and/or users receving post need accept app first? there other params need send?
thanks in advance
posting friend's wall has been disabled
post friends wall via api generate high levels of negative user feedback, including “hides” , “mark spam" , removing api. if want allow people post friend’s timeline app, can invoke feed dialog. stories include friends via user mentions tagging or action tagging show on friend’s timeline (assuming friend approves tag).
https://developers.facebook.com/blog/post/2012/10/10/growing-quality-apps-with-open-graph/
Comments
Post a Comment