This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup, improved accesstoken fetch, added documentation, german tran…
…slation
- Loading branch information
Showing
10 changed files
with
872 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
if(!FB_Feed) | ||
FB_Feed = {}; | ||
|
||
Ext.onReady(function() { | ||
document.getElementById("FB_Login").onclick = function() { | ||
FB.Login(function(response) { | ||
if (response.authResponse) { | ||
//reload the page to get managed pages | ||
} | ||
}, {scope: 'manage_pages'}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
TODO | ||
==== | ||
* write documentation on how to setup | ||
* improve the token request manager package | ||
|
||
|
||
Might do | ||
======== | ||
* get the number of comments per post | ||
|
||
|
||
|
||
Version 0.2.0-beta | ||
================== | ||
* basic functionality working | ||
* added a way to request a client Token from the manager |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ModX Facebook Feed | ||
================== | ||
|
||
This piece of Software will allow you to add a Facebook Feed from one of your | ||
Facebook pages to your site. This is great for companies that want to update | ||
clients using the Facebook page, but not want an ugly Facebook widget on their | ||
page. | ||
|
||
|
||
Requirements | ||
============ | ||
* Tested with ModX 2.5.1 | ||
* Needs PHP 5.4 or newer (Facebook API) | ||
|
||
|
||
Installation | ||
============ | ||
|
||
1. Create a Facebook app using the Facebook for Developers page | ||
https://developers.facebook.com/apps | ||
2. Note down both the AppID and the App Secret | ||
3. Install the package using the ModX package manager | ||
During the installation you will be asked to provide the ID and Secret | ||
of your Facebook app | ||
4. Use the Facebook Feed manager page to request a valid access token from | ||
5. Use the provided snippet to display a Feed on your page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* ModX Facebook Feed | ||
* Allows you to easily display a Facebook pages' feed on your website. | ||
* Copyright (C) 2016 Jan Giesenberg <giesenja@gmail.com> | ||
* | ||
* ModX Facebook Feed is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* ModX Facebook Feed is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with ModX Facebook Feed. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* Default English language strings for Login | ||
* @package login | ||
* @subpackage lexicon | ||
*/ | ||
$_lang['facebook_feed'] = 'Facebook Feed'; | ||
$_lang['facebook_feed_desc'] = 'Access Token erneuern'; | ||
$_lang['facebook_feed.ago'] = ' vor'; | ||
$_lang['facebook_feed.ago_days'] = '[[+days]] tage'; | ||
$_lang['facebook_feed.ago_hours'] = '[[+hours]] stunden'; | ||
$_lang['facebook_feed.ago_minutes'] = '[[+minutes]] min'; | ||
$_lang['facebook_feed.ago_seconds'] = '[[+seconds]] sek'; | ||
|
||
$_lang['setting_facebook_feed.app_id'] = 'Facebook Applikations ID'; | ||
$_lang['setting_facebook_feed.app_id_desc'] = 'Enter the ID of the Application given to you by Facebook.'; | ||
$_lang['setting_facebook_feed.app_secret'] = 'Facebook Applikations Secret'; | ||
$_lang['setting_facebook_feed.app_secret_desc'] = 'Enter the Secret of the Application given to you by Facebook.'; | ||
$_lang['setting_facebook_feed.access_token'] = 'Facebook Access Token(nicht verändern)'; | ||
$_lang['setting_facebook_feed.access_token_desc'] = 'This holds the generated Access Token for this application, do not change unless you know what you are doing.'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
core/components/facebook_feed/snippets/snippet.fb_feed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters