承接 level51/silverstripe-fb-timeline-pics 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

level51/silverstripe-fb-timeline-pics

最新稳定版本:0.2.2

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

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

  1. Obtain a valid app id and secret: https://developer.facebook.com/apps
  2. Provide your app credentials and Facebook page URL segment in the "Facebook" tab of the systems settings section.
  3. 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.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-08-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固