several domains for one Facebook login - facebook-login

I'm trying develop Facebook Login in my App.
In the App, each users registered, has a subdomain asociated like user1.myappdomain.com, user2.myappdomain.com...
But some users want another domain like www.otherdomain.com and next this is linked to subdomain. The otherdomain is in my VPS at same IP. But when I try to make login with facebook from otherdomain I retrieve an error, because www.otherdomain.com isn't myappdomain.com.
Is there a solution for that? I want to have only one facebook app for all domains.
Thanks!

Related

django redirect to other page and auto login to that page

Is there a way to redirect to other page and automatically log into that page?
So it's like I make django webpage with login and create link to facebook. When user clicks to facebook link, it should automatically login to his facebook page. Of course, I will have his facebook username and password on db I used to create the website.
Is this possible? Basically, I am trying to create interface page on django with link to several different webpage and make user access to his page by simply logon to this interface page alone.
I suggest that you have a look at the Django-allauth, which is an Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication
It does most of the things you want, you can go through the documentation
https://django-allauth.readthedocs.io/en/latest/index.html

How do I create a demo account in Django?

I have visited a couple of sites and they offer the option to try their site without registering, but you can login with something like someusername#somesite.com and somesiteguest.
I want to implement this for my own site. Currently I am using django-allauth for handling registration and logins.
I am just not sure how to handle users login with the same credentials.

Rails 4: User Login for SubDomains

I am creating a rails application that allows a user to sign up and create subdomains (communities). The user becomes the admin of each subdomain they create. They should be able to invite users to signup/login into each subdomain.
I don't want to share session across several subdomains in rails. Each subdomain should be it's on echo system control by the user who created it.
How can I accomplish this with Devise?
You can do this by following this guide:
https://github.com/plataformatec/devise/wiki/How-to:-Scope-login-to-subdomain

Facebook Redirect URI configuration for app that uses webhooks only

I have created an app that just wants Users to subscribe for User_events and manage_pages WebHooks subscriptions. As a developer I am able to test the WebHooks at my callback url where I am handling all my graph api calls and retrieving additional information using restfb.
I am confused on having a redirect uri, when I want users to authorize the app. Basically my understanding so far is that I need to make my app public and submit for review in order for others to see. Is redirect uri mandatory for my app? my app wont need users to visit my website or login to any of my callback urls. Only information I need when the user subscribe(or authorize) my app is their uid and pages they are giving me the permission to.
Please note I started reading about facebook webhooks and app development very recently (a week). Any suggestions would be great help.

How do I make my Django website act as an open id provider? I want logged in users to be able to use my site as an openid provider

I don't want to let my users login to my site with an openid.
I want all of my users who login to my site with their username and password to be able to use my site as an openid server/provider to login to other sites. Is there a Django plugin available to enable this?
Maybe one of these will be useful:
http://www.djangosnippets.org/snippets/310/
http://www.romke.net/django/openid_provider/introduction.html
Haven't tried it out, but I saw this come across twitter yesterday:
http://bitbucket.org/romke/django_openid_provider/
Looks like there are two projects worth looking at based on these two URLs:
http://code.djangoproject.com/wiki/DjangoResources
http://splike.com/wiki/Django_OpenID
OpenID-auth and OpenID-consumer:
https://launchpad.net/django-openid-auth
http://code.google.com/p/django-openid-consumer/