Posts

Showing posts from April, 2018

Passing string value to lambda function

I wrote a lambda function which accepts "string" type parameter. When I tried to invoke this function within another lambda function, it needs to enter the value to pass to the function to execute. So I entered the value "XXX". However, it throws the error "can't convert this JSON document into a string" when I pass the Guid value as a string. To resolve the issue, I add "\" to include the Guid value like "\""+m.messageId.toString()+"\"". The error is gone and the the value is passed to the function.

Fixed Facebook App login issue "The domain of this URL isn't included in the app's domains"

I have been setup and use the Facebook login successfully i my UWP app for sometime. But recent it was failure with error " Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings " when I running the app in "Release" mode in Visual Studio. I am using URL " https://www.facebook.com/v2.12/dialog/oauth?client_id=<XXXX>&redirect_uri=ms-app://{ Windows Store SID }&display=popup&response_type=token&state=1&scope=email ", I found the redirect_uri value which got from the code "WebAuthenticationBroker.GetCurrentApplicationCallbackUri().AbsoluteUri" is changed and not the sane value in the Facebook App setting's Windows Store ID. So I updated the new value to App Settings and then run above URL again, it works! Login to Facebook successfully. By the way, I used "https...