SocialAuth Posts

Brace yourselves. SocialAuth posts are coming…

First of all,

the problem I saw around here: Facebook, Twitter, etc. only allow you to define fully qualified website urls which means that you can’t provide a link such as

http://localhost:8080/MyFacebookConnectableProject/index

So, you will need a DNS configuration to show your localhost as a website.

How it is done in various operating systems is shown below:

1. Open a terminal window in your system (in Windows cmd must be run as administrator)

2. Open hosts file with your favorite text editor in terminal.

2.a. In Linux:

sudo vim /etc/hosts

2.b. In Mac:

sudo nano /private/etc/hosts

2.c. In Windows:

edit %WINDIR%\System32\Drivers\Etc\Hosts

3. if you have

127.0.0.1 localhost

line in your file, change this to:

127.0.0.1 localhost localhost.localdomain.com

if you don’t have you can add that line to your file

4. save and close, you are done!

Now, How to this info?

You will provide:

http://localhost.localdomain.com:8080/MyFacebookConnectableProject/index

and use this when connecting your local project.

Good Luck

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s