Creating a Foursquare Application

“Social Network Integrations” Documentation by “WPWeb”

To get a Foursquare App detail, go and visit: https://foursquare.com/developers/apps.

You need to be logged in to your Foursquare account to be able to get Foursquare client id and client secret. So first, login to your Foursquare account and then follow the link above to get to their developer page. Once you login to developer account a form will Pop Up. Fill the form and submit it. The screen should look similar to the one shown in the image below.

Foursquare Developer Console

After you submit the form you will be able to see the dashboard and there will “Create New Project ” button. click on it. The screen will look similar to image shown below.

Create App Dashboard

It will redirect to “Create an App” page. Enter the required data and click on “Create” button. See the Image Below:

Create A New Project form

After you click on “Create” button it will redirect to the Project Setting page. Click on Generate API Key. The screen will look similar to the image shown below.

Generate API Key

After you click on Generate API Key a Pop Up will appear there you can enter the nickname for your key and click on “Next” button. The screen will look similar to image shown below.

Foursquare API Key Nick Name

After you click on “Next” you will get the API key. Copy it and keep it safe as you won’t be able to see the key again. After you copy click on “Dismiss” button. The screen will look similar to the image shown below.

Nick API Key

Now fill the required fields and save it.  After that copy the client Id and Client secret key

Four Square API Key

Note: When you enter the URL of your website in to the “Redirect URI(s)” field, make sure that it does match the URL of your website 100%. Here you can enter multiple redirect URI(s) by comma separated. This means, if you go to your website and then check the URL in the browser and the URL does look like http://www.domain.com then you need to enter the exact same URL. If your website URL is http://domain.com then you need to enter it that way, without using the www at the front of the name.

Now, Paste the Foursquare Client Id and Client Secret in to the Foursquare App settings within the Plugin settings page. See image below:

Four Square Plugin Setting

Important: When you copy and paste all the needed IDs and Keys, make sure, that you don’t have any empty spaces, either at the beginning nor at the end of these entries. If you have any empty spaces, then the Application won’t work and will show an error message when you try to connect to the App.

After you entered the Foursquare Client Id and Client Secret, click on the “Save Changes” button within the plugin’s settings page.