user966391 user966391 - 2 months ago 16
Android Question

facebook cognito android eaxmple notworking

I have implemented facebook android cognito example cognitosyncdemo as per the instructions, i am getting following error, when trying sync the dataset,

E/ListDatasetsActivity(8541): Caused by: com.amazonaws.AmazonServiceException: 1 validation error detected: Value '{graph.facebook.com=}' at 'logins' failed to satisfy constraint: Map value must satisfy constraint: Member must have length less than or equal to 2048, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: [\S]+

Note: The code is exactly as per the example cognitodemosync. from github

https://github.com/awslabs/aws-sdk-android-samples/tree/master/CognitoSyncDemo

Answer Source

As noted on the GitHub issue, the issue was resolved by setting the correct values in the logins map.