Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8253613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:56:14+00:00 2026-06-08T00:56:14+00:00

Hi I’m a newbie to web programming and am trying to build an integrated

  • 0

Hi I’m a newbie to web programming and am trying to build an integrated FB application in PHP. I have already some some sample code stored on the heroku servers but for convenience I am trying to set up a local development environment and have installed WAMP (I’m running Windows 7 32-bit). I have three questions:

1) I have been following the instructions on https://devcenter.heroku.com/articles/facebook#working_locally and am in the process of setting up the developer test app. It seems that the localhost url is always 127.0.0.1 for every machine, but how can I find out what port number to put? Or do I simply pick a 4 digit one at random? In another post someone specified a port for Ruby (or Ruby on Rails, I’m not sure), but I can’t find any information on the port for PHP.

2) The guide mentions that I need to set the APP ID and APP secret as environment variables – how do I do this in WAMP?

3) Once I have created the test app, how do I actually go about working locally?

Help with any of these questions is much appreciated! Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T00:56:16+00:00Added an answer on June 8, 2026 at 12:56 am
    • You don’t need to specify a port, the default is 80 for HTTP which PHP uses.

    The guide mentions that I need to set the APP ID and APP secret as environment variables – how do I do this in WAMP?

    • Hopefully WAMP is like XAMPP so you should find your vhosts file equivalent and enter the following

      <VirtualHost *:80>
          DocumentRoot /Users/adam/Sites/mycoolapp-dev
          ServerName mycoolapp-dev.localhost
          SetEnv FACEBOOK_APP_ID 964173273189
          SetEnv FACEBOOK_SECRET dcd5d23d003d53cb2b68e01
      </VirtualHost>
      

    Something like C:\wamp\bin\apache\apache\conf\extra\httpd-vhosts.conf should be the location. So you’ll need to read up on Virtual Hosts for this to work, if you encounter errors

    Once I have created the test app, how do I actually go about working locally?

    • You code and save, and either create a new test app different from the one pushed to Heroku in your app settings or change the URLs in the original app settings to match your localhost URL. If everything is set your app should be able to work locally.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm trying to create an if statement in PHP that prevents a single post
I have a bunch of posts stored in text files formatted in yaml/textile (from
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.