IBM / BluePic

WARNING: This repository is no longer maintained :warning: This repository will not be updated. The repository will be kept available in read-only mode.
https://developer.ibm.com/code/patterns
Apache License 2.0
325 stars 67 forks source link

facebook login #366

Open apps4u opened 7 years ago

apps4u commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

apps4u commented 7 years ago
url
apps4u commented 7 years ago

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

apps4u commented 7 years ago

Number 5

screen shot 2016-11-17 at 1 01 30 pm
jkingoliver commented 7 years ago

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.