Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

This page describes FacebookCallMe, a small App that allows anyone to place a call through a Facebook App. Download.

Table of Contents
maxLevel2
indent1

Note
titleThe code is on GitHub

Download here. Do not hesitate to contribute in order to make this example better - we welcome Pull Requests!This demonstrative code SHOULD NOT be used in production. It is designed to simply show how an App interacts with UnifiedAPI. From this perspective, validations and error-checks aiming to demonstrate the most common mistakes are minimal and can be done easily.

Overview

FacebookCallMe is an App written in PHP which allows anyone to place a call with a Facebook App using the UnifiedAPI of VoipNow 3.

...

In order to be able to use the FacebookCallMe App, your system needs PHP 5.2 3 or higher and a Web web server (Apache2Apache 2, nginx, lighttpd, etc). Also, your Your VoipNow server must be at least version 3.0.0.

STEP 1: Download the files.Download the archive, extract the files, and copy them to a Switch to the directory that can be accessed over the Web (where your web server resides).web (e.g /var/www/html) and clone the Git repository:

Shell
languagebash
git clone https://github.com/4psa/app-facebookcallme.git
 

STEP 2: Proceed to allowing permissions and ownership rights.

You also need to give proper permissions and ownership to the files of the plugin - the plugin needs to be owned by the web server user and group.

For example, if we use httpd as a webserver:

...

Shell
chmod -R 755 <PATH_TO_FacebookCallMe>

...

chown -R httpd:httpd <PATH_TO_FacebookCallMe>
 

STEP 3: Configure the App.

To be able to use the App, you must configure it. To do so, open the file config.php in the <PATH_TO_FacebookCallMe>/interfaceconfig/plib/config.php and change the following settings:

...

As soon as the setup process is complete, you can access the interface through the Facebook App. To do so, simply visit https://<IP>/<PATH_TO_FacebookCallMe>/interface/. The page displays an input field with a button.

...

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.