Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to create a remote event receiver that will update the social feed of a user when ever he adds an item to a list on SharePoint Online. I've initiated the client context object using the code from http://code.msdn.microsoft.com/office/SharePoint-2013-Use-event-8b5a551f/sourcecode?fileId=72211&pathId=989899932.

Whenever i try to initiate the SocialFeedManager inside the using statement as such:

using (ClientContext clientContext = TokenHelper.GetClientContextWithAccessToken(sharepointUrl.ToString(), accessToken))
            {
                SocialFeedManager feedManager = new SocialFeedManager(clientContext);
                writeToList(properties, "RemoteEventLog", "got feedmanager");
            }

i never get to the 'writeToList' method. If i remove the SocialFeedManager initiation the writeToList method gets called just fine.

To make matters even worse, if i try to debug my remote event receiver it works just fine, its only when i deploy it that it refuses to work with the SocialFeedManager.

share|improve this question
    
good question :) –  Alex Choroshin Apr 3 '13 at 13:24
    
I'm facing the same issue with PeopleManager class. Is there any known limitation using social api inside remote event recievers? –  rawel Oct 24 '13 at 10:40
    
Only solution i found was using the REST API instead.. works great. –  JohnnyT Oct 29 '13 at 20:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.