简体   繁体   English

如何从http://localhost/index.php启用Facebook应用程序

[英]How to make Facebook app Live from http://localhost/index.php

I have written a app in PHP on my localhost server using XAMP, which is meant to be a Facebook app. 我已经使用XAMP在本地服务器上用PHP编写了一个应用程序,该应用程序将成为Facebook应用程序。 The app [which i wrote] consists of two php pages. 该应用程序(我写的)包含两个php页面。

But the problem is I am not being able to make it live on Facebook. 但是问题是我无法在Facebook上发布它。 I have tried reading the documentations, but all in vain. 我试过阅读文档,但徒劳无功。 Moreover i dont have any websites in my name. 此外,我没有任何以我的名字命名的网站。

So please kindly help, what changes should i make in my codes and the subsequent steps in making my small facebook app go online ?? 因此,请提供帮助,我应该对我的代码进行哪些更改以及使我的小型Facebook应用程序联机的后续步骤?

  1. Buy a domain (Cheap ones are available from GoDaddy.com) 购买域名(可从GoDaddy.com获得便宜的域名)
  2. Buy a hosting package (also available at GoDaddy.com) 购买托管包(也可以在GoDaddy.com上获得)
  3. Wait for the DNS settings to propagate (tick-tock...could take 24 hours) 等待DNS设置传播(“ tick-tock ...”可能需要24小时)
  4. FTP files your your hosting plan's server FTP文件您的托管计划的服务器
  5. Change your facebook app settings to point this new domain 更改您的Facebook应用设置以指向这个新域
  6. Reap the rewards of a well-written application. 获得编写良好的应用程序的回报。

you can always get a dynamic domain like http://www.no-ip.com/ it will then allow you to setup a DNS record from them to your server / app. 您总是可以得到一个动态域名,例如http://www.no-ip.com/ ,它将允许您设置从它们到您的服务器/应用程序的DNS记录。

The DNS would look something like myapp.no-ip.com (or anything else they offer). DNS看起来像myapp.no-ip.com (或它们提供的其他任何东西)。

Localhost is fine for a 'local' test, but beyond that you need to have a real way for users to reach you, remember in most cases facebook has to reach your app for confirmation, etc;. Localhost适用于“本地”测试,但除此之外,您还需要一种真正的方式让用户与您联系,请记住,在大多数情况下,facebook必须通过您的应用进行确认,等等;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 file_get_contents('http://localhost/api/index.php?get = x'); 如何使其工作? - file_get_contents('http://localhost/api/index.php?get=x'); how to make it work? Facebook应用登陆页面为index.php - Facebook app landing page to be index.php http://localhost/myphpadmin/index.php仅显示代码 - http://localhost/myphpadmin/index.php only shows code index.php工作正常,但是http:// localhost / MySite /关于不工作 - index.php working but http://localhost/MySite/about not working 导入csv文件后,重定向到http://localhost/index.php - after import csv file, redirects to http://localhost/index.php 我想在 URL http://localhost/mvc/index.php/1/ASC 中像这样传递参数。怎么做? - I want to get parameter passed like this in URL http://localhost/mvc/index.php/1/ASC .How to do that? Apache2 - 为什么“http://localhost/index”重定向到“http://localhost/index.php”? - Apache2 - why “http://localhost/index” redirect to “http://localhost/index.php”? 无法从实时站点的 codeigniter url 中删除 index.php - unable to remove index.php from codeigniter url in live site Codeigniter从URL本地主机:82 / project中删除index.php - Codeigniter remove index.php from URL localhost:82/project 从CodeIgniter网址中删除index.php重定向到本地主机 - Removing index.php from CodeIgniter url redirects to localhost
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM