Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Class extending Facebook-php-sdk to utilize Wordpress caching and storage

Notifications You must be signed in to change notification settings

sloped/Wordpress-Facebook-Class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Wordpress Facebook Class

Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
 
Description: 
Extended the facebookbaseclass from https://github.com/facebook/facebook-php-sdk
Has the intent of using wordpress transients and options tables to cache requests and store persistent data

Installation

Clone this repository
  git clone https://github.com/sloped/Wordpress-Facebook-Class.git
Clone or download the facebook-php-sdk
  git clone https://github.com/facebook/facebook-php-sdk.git
  
Include the BaseFacebook class and the wordpress-facebook-class.php in your plugin's main file. If you clone these into your plugin directory this should work. 
	include "facebook-php-sdk/src/base_facebook.php";
	include "wordpress-facebook-class/wordpress-facebook-class.php";

Please see the documentatation at https://developers.facebook.com/docs/reference/php/ 

This class provides one extended function unrelated to Wordpress, it allows you to get an extended access token from Facebook. 
For more information please see https://developers.facebook.com/docs/offline-access-deprecation/ 

This class provides no additional support for Wordpress, you will need to write the functions to retrieve and store access tokens required to authorizes users. 

About

Class extending Facebook-php-sdk to utilize Wordpress caching and storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages