bhagat-abhishek/fb-comments 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bhagat-abhishek/fb-comments

最新稳定版本:v0.0.1

Composer 安装命令:

composer require bhagat-abhishek/fb-comments

包简介

A Laravel package for integrating Facebook comments into your application.

README 文档

README

This is a package for integrating Facebook comments to your Laravel application.

Installation

To install the package, simply run:

composer require bhagat-abhishek/fb-comments

Configuration

After installing the package, add the service provider to your config/app.php file:

'providers' => [
    // ...
    BhagatAbhishek\FbComments\FbCommentsServiceProvider::class,
],

Then publish the configuration file by running the following command:

php artisan vendor:publish --provider="BhagatAbhishek\FbComments\FbCommentsServiceProvider" --tag="config"

This will create a fb-comments.php file in your config directory. In this file, you can configure the Facebook App ID and Secret, as well as other options for the package.

php artisan vendor:publish --provider="BhagatAbhishek\FbComments\FbCommentsServiceProvider" --tag="fb-comments-views"

This will publish the views files.

Next, add the following code on top of your layouts/app.blade.php file, just after the opening tag:

@include('fb-comments::fb-comments-script')

This will load the Facebook comments script on every page of your application.

Finally, wherever you want to render the comments, add the following code:

@include('fb-comments::fb-comments-code', ['url' => request()->url()])

This will render the Facebook comments for the current URL.

Usage

Here's an example of how to use the package:

@include('fb-comments::fb-comments-code', ['url' => request()->url()])

License

This package is open-sourced software licensed under the MIT license.

Credits

This package was created by Bhagat Abhishek.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-27