Facebook App 开发2:解决Facebook App无法通过https访问及如何自定义Facebook APP图标问题

    2011年11月份,Facebook为提高安全性,对所有app实行了加密通信,通俗的讲就是通过https来访问,这样一来,很多原有的、

自己开发的app就无法通过https访问了,因为原有的挂靠服务器没有安装SSL证书,无法完成加密通信。

    此时要想在Facebook上开发App,可以通过改装Facebook上一些专业的的Static HTML for page 或Static FBML for page 的App来建立自己的App。

即找到这些App,然后再将自己的app页面代码和样式放入这些app里即可。

但是,通过这种方法无法修改App的小图标,即How to Setup a Custom App with a Custom Tab Icon?

方法总比困难多,我们可以通过Using Woobox's IFRAMEHOST来解决问题。

 

1. Create New App

Visit https://developers.facebook.com/apps and click the Create New App button. Next type an App Name (This can be anything you want, the name you are going to call your tab would be a good choice), agree to the Facebook terms and click Continue.

 

2. Configure your App

Click the edit icon link to upload the icon for your tab. Next, click the Page Tabsection under Select how your app integrates with Facebook.
Note your App ID at the top of the page. You need this App ID to create the URLs you need to enter in the App on Facebook and Page Tabsections,
Canvas URL - Enter http://YOURAPPID.iframehost.com/ (Replace YOURAPPID with your App ID)
Secure Canvas URL - Enter https://YOURAPPID.iframehost.com/ (Replace YOURAPPID with your App ID)
Page Tab URL - Enter http://YOURAPPID.iframehost.com/tab (Replace YOURAPPID with your App ID)
Secure Page Tab URL - Enter https://YOURAPPID.iframehost.com/tab (Replace YOURAPPID with your App ID)
Page Tab Name - Enter whatever you want your tab name to be
*** Make sure your Tab URLs end in /tab ***
After you finish entering those 4 fields. Click the Save Changes button.

 

3. Install your new App to your Page

Make a note of your App Secret(you will need to input it shortly). Enter the following URL in your browser to install your new page tab app:
http://www.facebook.com/add.php?api_key=YOURAPPID&pages (Replace YOURAPPID with your App ID)
Select the page you would like to install the tab on.

 

4. Visit your Page Tab

The first time you visit your page tab, you will be prompted to enter your App Secret into activate the tab.
 
 
 

 

posted on 2012-02-14 10:15  云起的自学笔记  阅读(1273)  评论(0编辑  收藏  举报

导航