Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Any idea why while posting messages, Yammer is throwing "The remote server returned an error: (500) Internal Server Error." error. and the message is not posted. Any help..?

I'm using Yammer .NET wrapper and it's working fine with REST call "https://www.yammer.com/api/v1/messages.json", but posting message gives the above error. Any workarounds or experience on this?, thanks.

 String consumerkey = "consumerkey";
        String clientsecret = "clientsecret";
        WebProxy webpro = new WebProxy("ourproxyserver",8080)
        webpro.BypassProxyOnLocal = true;
        webpro.Credentials = CredentialCache.DefaultCredentials;
        String access_token = "https://www.yammer.com/oauth2/access_token.json"+
            "?client_id=clientid&"+
            "client_secret=cli_secret&code=code_id";

        Yammer.Session session = new Yammer.Session(new OAuth.OAuthKey(consumerkey, clientsecret,
            access_token,"token")
            , webpro);

            NameValueCollection parameters = new NameValueCollection();
            parameters.Add("body", body);

response = Yammer.HttpUtility.Post(Resources.YAMMER_MESSAGES_CREATE, parameters, session);
Posted
Updated 7-Oct-13 18:56pm
v2

1 solution

try by adding one more parameter 'group_id'
 
Share this answer
 
Comments
Pasan Eeriyagama 14-Oct-13 0:51am    
Hi, tried that as well, didn't work. I tried posting to group id 1951***, and also tried passing group id as 0. Will try to find some workaround and will post here if successful. Thanks for helping anyway.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900