Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

facebook login #366

Open
apps4u opened this issue Nov 16, 2016 · 7 comments
Open

facebook login #366

apps4u opened this issue Nov 16, 2016 · 7 comments

Comments

@apps4u
Copy link

apps4u commented Nov 16, 2016

Hi Im not sure this is the right place or if I should add a ticket to Bluemix.

Ok I used the Bluemix Cloud Tools apps to create and launch BluePic I then went to enable Facebook login. No issue with mobile app I then went to add Facebook Login for the Web Site and this is were I had a issue.

So using the Mobile Client Access service you are given a OAuth URL callback URL
e.g.: https://mobileclientaccess.ng.bluemix.net/oauth/v2/******/Facebook/callback

Now That is the URL I should put into the faecbook developer "Valid OAuth redirect URIs" setting.
Now when doing that I was not able to login I had to change "Valid OAuth redirect URIs" to be my deployed App url e.g: https://bluepic003.mybluemix.net

Now reading the doc's in the service and from setting it up before I'm sure the "Valid OAuth redirect URIs" should be the one above but not my Apps URL.

Any way I kept getting a Facebook login error on the web site until I removed the MCA callback URL and put my app url in the Facebook Developer "Valid OAuth redirect URIs" setting

So if this is the wrong place to put this let me know I'll rase a support ticket on Bluemix to have the Doc's updated.

@jkingoliver
Copy link

Hey! The BluePic web app doesn't support MCA right now, only Facebook login. So the docs you referenced don't apply here. The problem is that MCA doesn't have a javascript client and there's an issue open for that already.

You are right about needing to add your deployed App URL to the "Valid OAuth redirect URIs" list.

@apps4u
Copy link
Author

apps4u commented Nov 17, 2016

That what I meant Facebook login , I meant Mobile Access Client.

I enable Facebook login for the app and web site but as I said I had to use the app url not the URL that is said to in the Doc's.

It works so I can Facebook login via BluePics mobile app and web site. But when setting up the login if you follow the docs it said to put the call back url in Facebook to the https://mobileclientaccess.ng.bluemix.net/oauth/v2/******/Facebook/callback but that did not work.

Sorry if I was not clear

@jkingoliver
Copy link

Are you referring to the MCA docs? Can you please link here the docs you're referring to?

@apps4u
Copy link
Author

apps4u commented Nov 17, 2016

url

@apps4u
Copy link
Author

apps4u commented Nov 17, 2016

@apps4u
Copy link
Author

apps4u commented Nov 17, 2016

Number 5

screen shot 2016-11-17 at 1 01 30 pm

@jkingoliver
Copy link

Ok, thanks. Those docs don't apply to the BluePic web app, only the iOS app, since the web app doesn't support MCA. I assume you installed BluePic from the readme in github: https://github.com/IBM-Swift/BluePic ? We will need to update those instructions to clarify the Facebook app configuration. Thanks for bringing this up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants