“Facebook All-In-One” Documentation by “TivaTheme” v1.0


Facebook All-In-One

Created: 14/12/2019
By: TivaTheme
Email: tivatheme@cloodo.com

Thank you for purchasing my product. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Table of Contents

  1. Overview
  2. System Requirements
  3. Installation
  4. Usage

A) Overview - top

Facebook is one of the best and biggest social media platform, millions of people are on Facebook now. It is the greatest way to connect with your friends and customers. It's easy and free!

Facebook All-In-One is the ultimate and most advanced script to integrate Facebook content into your PHP website. With this script, you can display the Facebook Events, Facebook Feed (Post, Photos, Albums, Videos), Facebook Messenger and Facebook Likebox on your web. So it will help you to increase the audience of Facebook page and the number of sales.


B) System Requirements - top

This product is compatible with :

Compatible Browsers :


C) Installation - top

Step 1: Firstly, you need create Facebook application on https://developers.facebook.com. You can refer how to do it here: https://developers.facebook.com/docs/apps/register/. Your Facebook application must be on status In Development. Remember the ID and Secret of application.

Facebook Application

Step 2: Upload script package (facebook-all-in-one.zip) to your host, then extract it.

Step 3: Create new MySQL database, then import file : config/database.sql.

Step 4: Open file config/database.php, then edit the config info to connect to the database which you have created (host, database, username, password).

Step 5: Go to the admin site:

On Facebook Connection configuration, enter the ID and Secret of your Facebook Application (Step 1), then click Save button to save the info of your app. Then copy the link on the browser (see below image). Note: Your website must run on https (SSL certificate).

Config Connection

Step 6: Go to your Facebook Application again, then create new Product with type Facebook Login.

Facebook Product Facebook Product

Step 7: On the settings of product, enter the link which you have copied from Step 5 on the Valid OAuth Redirect URIs.

Facebook Product

Step 8: Go to the Facebook Application on admin again, then click Login with Facebook button. Then give the permission for application to access the info of your pages.

Config Module Config Module Config Module

If the process is successful, you will see your Avatar, User ID, Access Token and all the Facebook pages which you manage. Select the Facebook page from which you want to display events. Then click Save button.

Config Module


D) Usage - top

1. Backend

Go to Settings to set configuration for Facebook Events Calendar, Facebook Feed, Facebook Messenger, Facebook Likebox.

Settings

Facebook Events Calendar
Facebook Feed
Facebook Messenger
Facebook Likebox


2. Frontend

To use the script, firstly include component php files:

include_once('component-events-calendar.php');
include_once('component-feed.php');
include_once('component-messenger.php');
include_once('component-likebox.php');

Then include some CSS and JS files. If your website has already bootstrap, font-awesome, jquery, magnific-popup, imagesloaded, masonry don't need include them.

<!-- Include CSS files -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/magnific-popup.css">
<link rel="stylesheet" href="assets/css/main.css">

<!-- Include JS files -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.magnific-popup.js"></script>
<script src="assets/js/mediaelement.min.js"></script>
<script src="assets/js/imagesloaded.pkgd.min.js"></script>
<script src="assets/js/masonry.pkgd.min.js"></script>
<script src="assets/languages/lang.js"></script>
<script src="assets/js/calendar.js"></script>
<script src="assets/js/main.js"></script>

To display Facebook Events Calendar, call function:

tiva_facebook_events_calendar();

To display Facebook Feed, call function:

tiva_facebook_feed();

To display Facebook Messenger, call function:

tiva_facebook_messenger();

To display Facebook Likebox, call function:

tiva_facebook_likebox();

Once again, thank you so much for purchasing this product. As I said at the beginning, I'd be glad to help you if you have any questions relating to this product. No guarantees, but I'll do my best to assist. If you have a more general question relating to the product on CodeCanyon, you might consider visiting the forums and asking your question in the "Item Discussion" section.

TivaTheme

Go To Table of Contents