Facebook authentication Using Google cloud API endpoints returning 401 error (Unauthorized)

@Murugank , Welcome to Apigee Community :slight_smile:

Are you using Apigee ? Can you please provide more context to your question to better understand your issue? Have you created any proxy for same in Apigee Edge?

@Anil Sagar,

Thanks for your kind response.

I am using google cloud endpoinds. The google cloud endpoinds accepting only google authorized request.Not accepting facebook authorized request.

Return error

No ā€˜Access-Control-Allow-Origin’ header is present on the requested resource. Origin ā€˜http://localhost’ is therefore not allowed access. The response had HTTP status code 400.

Then another error 401

I am already login via facebook. But return User must be login.

com.google.a.a.b.b.c:401Unauthorized

{

ā€œcodeā€:401,

ā€œerrorsā€:[

{

ā€œdomainā€:ā€œglobalā€,

ā€œlocationā€:ā€œAuthorizationā€,

ā€œlocationTypeā€:ā€œheaderā€,

ā€œmessageā€:ā€œInvalid token.ā€,

ā€œreasonā€:ā€œrequiredā€

}

],

ā€œmessageā€:ā€œInvalid token.ā€

com.google.a.a.b.b.c:401Unauthorized

}

Please help me someone.