The Google Maps application is supported in Facebook apps. The easiest way to embed a map is by using the Google Maps embed feature in your Facebook app. Once you have the code properly inserted in your Facebook app, it will display an interactive map that a user can zoom in or out, search for nearby locations and get directions to a specific destination you set. The maps also feature three modes: map view, satellite images and terrain overlay.
Go to maps.google.com in your browser window and search the map for your destination or attraction. Once Google has pinpointed that location on the map, click the "Chainlink" icon near the upper right side of the page.
Click the "Customize and Preview Embedded Map" link. On the next screen, set the map size and verify that the preview is suitable for your application. Highlight the code in the "Copy and Paste This HTML to Embed in Your Website" box and press the "Ctrl" + "C" keys simultaneously on your keyboard to the copy the text. This key combination copies the text into your computer's hidden memory buffer for later use.
Launch your editor program such as CoffeeCup or Windows NotePad. Open an existing HTML document that you were using for your Facebook application or create a new HTML document with the following minimum code:
<html>
<head>
</head>
<body>
</body>
</html>
Put the mouse cursor after the "<body>" tag in the HTML document and press the "Enter" key to create a new line.
Paste the Google Maps code into the document by pressing the "Ctrl" + "V" keys simultaneously. When ready, save the HTML file and upload it to your servers. All Facebook apps are hosted on external websites, not on Facebook's servers.
Create a new app or update your existing application in your Facebook Developers account at developers.facebook.com.
Precautions
HTML, the Hypertext Markup Language, is the most common programming language used to display websites and pages on the Internet.
An HTML document may contain HTML code, Cascading Style Sheets (CSS), JavaScript and other programming languages. When opened in an editor program outside a browser, the user sees coding tags, structure styling and computer code rather than an attractive Web page.
Go to maps.google.com in your browser window and search the map for your destination or attraction. Once Google has pinpointed that location on the map, click the "Chainlink" icon near the upper right side of the page.
Click the "Customize and Preview Embedded Map" link. On the next screen, set the map size and verify that the preview is suitable for your application. Highlight the code in the "Copy and Paste This HTML to Embed in Your Website" box and press the "Ctrl" + "C" keys simultaneously on your keyboard to the copy the text. This key combination copies the text into your computer's hidden memory buffer for later use.
Launch your editor program such as CoffeeCup or Windows NotePad. Open an existing HTML document that you were using for your Facebook application or create a new HTML document with the following minimum code:
<html>
<head>
</head>
<body>
</body>
</html>
Put the mouse cursor after the "<body>" tag in the HTML document and press the "Enter" key to create a new line.
Paste the Google Maps code into the document by pressing the "Ctrl" + "V" keys simultaneously. When ready, save the HTML file and upload it to your servers. All Facebook apps are hosted on external websites, not on Facebook's servers.
Create a new app or update your existing application in your Facebook Developers account at developers.facebook.com.
Precautions
HTML, the Hypertext Markup Language, is the most common programming language used to display websites and pages on the Internet.
An HTML document may contain HTML code, Cascading Style Sheets (CSS), JavaScript and other programming languages. When opened in an editor program outside a browser, the user sees coding tags, structure styling and computer code rather than an attractive Web page.