[Facebook Connector] Error: You are not logged in: You are not logged in. Please log in and try again.

Forge Component
Published on 2018-12-04 by OutSystems R&D
9 votes
Published on 2018-12-04 by OutSystems R&D


I am trying to implement the Facebook connector in one of my project. I have tried to test the connector using the demo provided in the application.

I see that the first step after the configuration is done is to get the authorization through the /dialog/oauth authorization endpoint. I created the complete endpoint URL by replacing the parameters RESPONSE_TYPE, CLIENT_ID, REDIRECT_URI, STATE and SCOPE in the URL https://www.facebook.com/dialog/oauth?response_type=RESPONSE_TYPE&client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&state=STATE&scope=SCOPE with the corresponding values. I was hoping that this would open the logging in and authorization dialog where I would need to enter my login credentials and provide my authorization just like in other connectors (e.g.Twitter and Instagram). instead I got a page which give me the following error

The Redirect URI I am sending is for a callback page in my eSpace. I went through the Facebook documentation and found that in order to get to the login I need to use https://www.facebook.com/connect/login_success.html as the redirect URI (ref: Manually Build a Login Flow). But if I use this as the redirect URI then after logging in I can't get back to my desired callback page for further actions.

Could anyone help me out with this? Am I missing something? Is there any forum discussion that covers this?

Thanks in advance.

I haven't used this connector in years, so I might be mistaken, but don't you configure the redirect URL as a property of your Facebook App (in https://developers.facebook.com)?