BluePic icon indicating copy to clipboard operation
BluePic copied to clipboard

facebook login

Open apps4u opened this issue 7 years ago • 7 comments

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.

apps4u avatar Nov 16 '16 08:11 apps4u

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.

jkingoliver avatar Nov 16 '16 16:11 jkingoliver

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

apps4u avatar Nov 17 '16 02:11 apps4u

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

jkingoliver avatar Nov 17 '16 02:11 jkingoliver

url

apps4u avatar Nov 17 '16 03:11 apps4u

https://console.ng.bluemix.net/docs/services/mobileaccess/facebook-auth-web.html

apps4u avatar Nov 17 '16 03:11 apps4u

Number 5

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

apps4u avatar Nov 17 '16 03:11 apps4u

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.

jkingoliver avatar Nov 17 '16 14:11 jkingoliver