定制 sledgehammer/facebook 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sledgehammer/facebook

Composer 安装命令:

composer require sledgehammer/facebook

包简介

Sledgehammer Facebook module. An OOP layer on top of the official Facebook SDK.

README 文档

README

Object oriented API for using Facebook's Social Graph.

Features

  • Autocompletion for common facebook objects.
  • Automaticly fetches all allowed fields.
  • Gives hint which permissions are missing when you access a (maybe) not-allowed property or connection.
  • Fetches connected objects as properties. $me->friends
  • Connected objects are Collection object, for easy filtering & sorting. $me->friends->orderBy('last_name');
  • Caches userfields and friends when using the FacebookUser object for improved performance.
  • Lazily fetches objectdata. No api calls for data you don't use.

Improvements in the Facebook class.

  • Easy login() or automatic login.
  • shorthand for get/post/delete requests. Example: Facebook::get('me')
  • shorthand for executing a fql query.
  • Validates requested permissions.
  • Logs api calls and measures executionTime.
  • api() accepts $parameters['fields'] as an array.
  • all() fetches multiple pages in a paginated result and returns the merged array.
  • Singleton pattern, access Facebook from anywhere in your application.
  • Add "local_cache"=> true to the parameters and the the results of the api call are cached.

Idea's / Todo

  • notice() when the (automatic) pageLimit is reached.
  • Implement all documented facebook entities & connections.
  • Implement writing api as methods in the GraphObject.
  • Implement ActiveRecord methods. save(), delete()
  • Greedy mode (vs Strict mode) which retrieves all fields we might*1 have access to. (*1: depends on privacy settings)
  • Ability to make asynchronous requests. "async" => true

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: CC-BY-SA-3.0
  • 更新时间: 2012-10-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固