level51/silverstripe-fb-timeline-pics
Composer 安装命令:
composer require level51/silverstripe-fb-timeline-pics
包简介
A small SilverStripe module that accesses the timeline pictures (and posts) of a Facebook page.
README 文档
README
- Julian Scheuchenzuber js@lvl51.de
Installation
composer require level51/silverstripe-fb-timeline-pics
If you don't like composer you can just download and unpack it to fb-timeline/ under the root of your SilverStripe project.
Setup
- Obtain a valid app id and secret: https://developer.facebook.com/apps
- Provide your app credentials and Facebook page URL segment in the "Facebook" tab of the systems settings section.
- Go ahead and use it in your code (example snippets):
$pics = FacebookAPI::inst()->getPics(20); ... foreach(FacebookAPI::inst()->getPosts(6) as $post) { echo $post->Message . '<br>'; }
...or in the template:
<% loop $Pics(6) %>
$Tag<br>
<% end_loop %>
Notes
If you like to set up some continuous integration you can use the FacebookSyncTask. Crontab in combination with the sake module could be a neat approach.
0 0 * * * cd /your/silverstripe/dir && sake dev/tasks/FacebookSyncTask > /dev/null 2>&1
Troubleshooting
- Make sure that new automatically generated folder facebook-pics/ (under the assets root) has full file access rights.
level51/silverstripe-fb-timeline-pics 适用场景与选型建议
level51/silverstripe-fb-timeline-pics 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 75 次下载、GitHub Stars 达 2, 最近一次更新时间为 2015 年 08 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 level51/silverstripe-fb-timeline-pics 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 level51/silverstripe-fb-timeline-pics 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 75
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-08-24