Guest User

Untitled

a guest
Aug 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. How do I check if .Post has send successfully in Facebook C# sdk?
  2. //...
  3. FacebookClient fbClient = new FacebookClient(appId, appSecret);
  4. fbClient.AccessToken = "...";
  5. string to = "user id";
  6. dynamic result = fbClient.Post(String.Format("{0}/feed", to), parameters);
  7.  
  8. {
  9. "error_code": 200,
  10. "error_msg": "The user hasn't authorized the application to perform this action",
  11. "request_args": [
  12. {
  13. "key": "method",
  14. "value": "stream.publish"
  15. },
  16. {
  17. "key": "access_token",
  18. "value": "AAAC9okD6ZA7ABABhvJOZBQvUE2OsuHLKEkqlvKKkPDNB9kHfF55DqgKF2raHmSaUSgkpvLtgWniM5CFnu5mxaGODLqvwVz9zBNd1Jd6AZDZD"
  19. },
  20. {
  21. "key": "format",
  22. "value": "json"
  23. }
  24. ]
  25. }
Add Comment
Please, Sign In to add comment