I've an application integrated with Facebook Connect. My application is deployed on different environments (production, staging, development) with different domains.
Is there a way to set up Facebook app, so that it work with all my environments? Or should I create separate facebook apps for each env?
If you're relying on things such as callback URLs, then no. Those are tied to one specific URL. Separate Facebook apps sounds like the way to go. Just have the app info be in your web configuration.
Related
I've built multiple Rails/React applications for my company (all in one using Rails 6. Rails renders json to React).
All applications will be on the same domain and eventually, access rights will be done via VPN. For now, I would like to build a Single Sign On app that would give a list of apps to choose from (Accounts, Dashboard, Audits, etc). Based on the users credentials, they may or may not have certain privileges on these applications.
I appears that the Doorkeeper Gem is the way to go and that the SSO app would also be using Devise for User?
I should add but not sure if it makes a difference. Some of the apps are Rails MVC only. Others use Rails api and React frontend.
And do I create a 'portal' app with just User and devise?
Here's a wireframe of the setup:
When it comes to sub domains in AWS (payments.x.com and forums.x.com) do I upload completely different rails apps for the payments and the forums?
If so how do I make sure that the logged in user is carried over from one to the other when using Postgres?
Might be answering my own question, but do the apps need different client secrets and different callbacks. And if they do, how do I configure it on Spotify?
The iOS SDK uses the same WebAPI, so authorisation is identical I believe. Therefore, only 1 app and set of credentials required :)
https://developer.spotify.com/web-api/authorization-guide/
I have a Rails app deployed to Heroku, I can reach it from the backend side of my shopify store. But how can I display anything from it (at least a helloController's view) at the frontend?
You may want to look into Application Proxies. These are available in the settings for your app. This would allow you to map "/a/hello" to HelloController#index for example.
(For testing locally, you then may want to use PageKite for tunnelling the app.)
I'm working on a rails app that powers multiple facebook apps (serving them via iFrame) and allows users to install / customize the different apps from an admin area in my app.
I'm using the Facebooker2 gem and noticed that I can only specify one app_id and app_secret in the Facebooker.yml config file. Any tips on how I can modify it to support multiple Facebook apps.
My first thought would be to store the app_id's and app_secret's for my apps in the database then have Facebooker dynamically load them accordingly from there.
Any advice would be much appreciated!
Well I have worked on this problem before, the way we did it was to store the facebook credentials in a database, depending on the customer we had a before_filter in our controller which would switch the configuration as needed. I hope this helps as a starting point. I can elaborate more if you need me to.