volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Social Reach NullReferenceException on send

I've just installed the nuget package for EPiServer.Social (v2.2.2) on my local episerver installation (episerver.cms 10.3.2). Then in social reach tab> settings, I've added a facebook channel and authorized it and then I've created a message. Everything worked fine, but then when I went to overview tab I saw that the message has failed.

Any Idea why get_SiteUrl throws exception?

Do I need to set any configuration in web config?

Do I need to set anything for workflows on Episerver 10? 

This is the log:

2017-02-13 13:24:48,590 [16] ERROR EPiServer.Social.MessageBusiness: Error while executing to send social messages
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Social.Configuration.SettingsElement.get_SiteUrl()
at EPiServer.Social.Helpers.UrlUtil.MakeAbsoluteUrl(String url)
at EPiServer.Social.Helpers.UrlUtil.ConvertToExternalUrl(String internalUrl)
at EPiServer.Social.Providers.FacebookProvider.Send(SocialMessageDto socialMessage)
at EPiServer.Social.MessageBusiness.<>c__DisplayClass15_0.b__0()
System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Social.Configuration.SettingsElement.get_SiteUrl()
at EPiServer.Social.Helpers.UrlUtil.MakeAbsoluteUrl(String url)
at EPiServer.Social.Helpers.UrlUtil.ConvertToExternalUrl(String internalUrl)
at EPiServer.Social.Providers.FacebookProvider.Send(SocialMessageDto socialMessage)
at EPiServer.Social.MessageBusiness.<>c__DisplayClass15_0.b__0()
#175136
Edited, Feb 13, 2017 18:20
Vote:

My guess (untested): You probably won't get Social Reach to successfully share to Facebook if the article is on localhost or another non-public URL. 

#175139
Feb 13, 2017 23:52

Yes, I think Facebook cannot get the localhost/xyz/abc link on your machine.

There is a warning box on top of Social Reach panel to remind about it.

#175144
Feb 14, 2017 4:02

Thanks guys

#175152
Feb 14, 2017 8:56
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.