博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Facebook Tab & App 开发入门和FAQ
阅读量:4992 次
发布时间:2019-06-12

本文共 2576 字,大约阅读时间需要 8 分钟。

最近在做Facebook Tab & App的开发.

想分享一些基本的文档和概念给大家;

希望可以帮助大家了解Facebook中一些基本的概念, 资源和初步开发入门.

Facebook已经成为一个重要的公司宣传平台,活动和广告平台,还有丰富的应用和游戏.

 

 

Facebook Tab & App Development

  • What is Tab
    • Maximum width is 520px.
    • Tab can add to a Page.
  • What is Page
    • This is a page sample 
    • How can I create a page for testing?
    • Publish status of page
      • In the top of page,  it is not published if you see following information (you should have admin permission)

          

      • Only Page admin can assess page if it is not published
  • What is Facebook App
    • For developer, check this out for more information
    • Maximum width is 760px
  • Pre-condition (Before Development)
    • You are developer in Facebook website
    • You are administrator of this tab application
    • You are admin of page (if you want to add a tab to a page)
    • Usually, all Facebook Tab & Page should support both HTTP & HTTPS
    • You have your own website to deploy Tab & Page application
  • Create a new tab or application
    • Open 
    • Click Create New App in the right side

          

    • Following 3 tabs are important (configure Site URL to local path, let we can debug in our local environment)

         

    • Site URL is the root path of your website (all rest of URL should start with value of Site URL)
    • Rest 4 URLs are entry point of Tab & App
    • Facebook will call these entry point via HTTP POST with signed_request information
      • Signed_Reuqest include some important information
      • Does user like this page or application
    • User’s AsseccToken
    • Configuration of sandbox
      • Settings -> Advanced
      • Enable sandbox mode means that only admin can access this Tab & App

 

FAQ:

  • 授权
    • OAuth 2.0
  • Basic
    • Recommend all page in your website include Facebook script and initialization code
  • Recommend we have individual page to handle entry point 
  • Plugins
    • Use Fb.Event.subscribe to monitor event (ie: user login)
    • Iframe cannot fire event (please use xfbml)
    • Use JavaScript to call FB.ui to fire Plugins
  • How can we know if user likes our page or not?
    • Get information from signed_request
  • How can we remove scroll bar in Tab & Page
    • Style in body element :  overflow:hidden
    • Call FB.Canvas.setSize
  • How can we grab information from facebook  (Graph API & FQL)
    • We can get public information from Facebook API
    • We have to get AccessToken if we want to access private information
    • We can get AccessToken signed_request
    • We can get AccessToken from any login page
      • from FB.login  in javascript
      • from login.php
    • After we get AccessToken
    • If we don’t get enough permission from user, we may not grab information
  • Library
    • .net  
    • javascript 
    • PHP 

 

希望这些Facebook相关资料能帮助你对facebook开发有一个大概的概念,

转载于:https://www.cnblogs.com/PurpleTide/archive/2011/11/30/2268728.html

你可能感兴趣的文章
关于C#操作INI文件的总结
查看>>
ZeptoLab Code Rush 2015 B. Om Nom and Dark Park
查看>>
ctci1.2
查看>>
[译]RabbitMQ教程C#版 - 路由
查看>>
升级项目到.NET Core 2.0,在Linux上安装Docker,并成功部署
查看>>
Android:onNewIntent()触发机制及注意事项
查看>>
珠宝公司之感想
查看>>
项目问题
查看>>
scss侦听并压缩
查看>>
我有接口文档, 你有酒吗?
查看>>
iOS - Push 通知推送
查看>>
[FJOI2007]轮状病毒
查看>>
Azure AADSTS7000215 其中一种问题的解决
查看>>
关于吃苦
查看>>
uva 1629切蛋糕(dp)
查看>>
生成awr报告
查看>>
cocos2d-x 3.0rc2 对于每个包执行情况的重要平台 (超级方便)
查看>>
Android 深入解析光传感器(二)
查看>>
Ansible@一个高效的配置管理工具--Ansible configure management--翻译(八)
查看>>
【bzoj4552/Tjoi2016&Heoi2016】排序——二分+线段树/平衡树+线段树分裂与合并
查看>>