Plugin Directory

Changeset 1109471


Ignore:
Timestamp:
03/10/2015 01:58:04 PM (11 years ago)
Author:
M66B
Message:

1.215 release

Location:
add-link-to-facebook
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • add-link-to-facebook/tags/1.215/add-link-to-facebook-int.php

    r1083673 r1109471  
    4848        static function Authorize_url($user_ID) {
    4949            // http://developers.facebook.com/docs/authentication/permissions
    50             $url = 'https://graph.facebook.com/oauth/authorize';
     50            $url = 'https://graph.facebook.com/v2.2/oauth/authorize';
    5151            $url = apply_filters('al2fb_url', $url);
    5252            $url .= '?client_id=' . urlencode(get_user_meta($user_ID, c_al2fb_meta_client_id, true));
    5353            $url .= '&redirect_uri=' . urlencode(WPAL2Int::Redirect_uri());
    54             $url .= '&scope=read_stream,publish_stream,offline_access,manage_pages,user_groups,publish_actions';
     54            $url .= '&scope=read_stream,manage_pages,user_groups,publish_actions';
    5555            $url .= '&state=' . WPAL2Int::Authorize_secret();
    5656            return $url;
     
    101101        // Request token
    102102        static function Get_fb_token($user_ID) {
    103             $url = 'https://graph.facebook.com/oauth/access_token';
     103            $url = 'https://graph.facebook.com/v2.2/oauth/access_token';
    104104            $url = apply_filters('al2fb_url', $url);
    105105            $query = http_build_query(array(
     
    121121            $token = WPAL2Int::Get_access_token($user_ID);
    122122            if ($token) {
    123                 $url = 'https://graph.facebook.com/oauth/access_token';
     123                $url = 'https://graph.facebook.com/v2.2/oauth/access_token';
    124124                $url = apply_filters('al2fb_url', $url);
    125125                $query = http_build_query(array(
     
    163163        static function Get_fb_application($user_ID) {
    164164            $app_id = get_user_meta($user_ID, c_al2fb_meta_client_id, true);
    165             $url = 'https://graph.facebook.com/' . $app_id;
     165            $url = 'https://graph.facebook.com/v2.2/' . $app_id;
    166166            $url = apply_filters('al2fb_url', $url);
    167167            $token = WPAL2Int::Get_access_token($user_ID);
     
    199199
    200200        static function Get_fb_info($user_ID, $page_id) {
    201             $url = 'https://graph.facebook.com/' . $page_id;
     201            $url = 'https://graph.facebook.com/v2.2/' . $page_id;
    202202            $url = apply_filters('al2fb_url', $url);
    203203            $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id);
     
    238238        // Get page list
    239239        static function Get_fb_pages($user_ID) {
    240             $url = 'https://graph.facebook.com/me/accounts';
     240            $url = 'https://graph.facebook.com/v2.2/me/accounts';
    241241            $url = apply_filters('al2fb_url', $url);
    242242            $token = WPAL2Int::Get_access_token($user_ID);
     
    269269        // Get group list
    270270        static function Get_fb_groups($user_ID) {
    271             $url = 'https://graph.facebook.com/me/groups';
     271            $url = 'https://graph.facebook.com/v2.2/me/groups';
    272272            $url = apply_filters('al2fb_url', $url);
    273273            $token = WPAL2Int::Get_access_token($user_ID);
     
    300300        // Get friend list
    301301        static function Get_fb_friends($user_ID) {
    302             $url = 'https://graph.facebook.com/me/friends';
     302            $url = 'https://graph.facebook.com/v2.2/me/friends';
    303303            $url = apply_filters('al2fb_url', $url);
    304304            $token = WPAL2Int::Get_access_token($user_ID);
     
    310310
    311311        static function Get_fb_permissions($user_ID, $id) {
    312             $url = 'https://graph.facebook.com/' . $id . '/permissions';
     312            $url = 'https://graph.facebook.com/v2.2/' . $id . '/permissions';
    313313            $url = apply_filters('al2fb_url', $url);
    314314            $token = WPAL2Int::Get_access_token($user_ID);
     
    336336        // Get comments
    337337        static function Get_fb_comments($user_ID, $id) {
    338             $url = 'https://graph.facebook.com/' . $id . '/comments';
     338            $url = 'https://graph.facebook.com/v2.2/' . $id . '/comments';
    339339            $url = apply_filters('al2fb_url', $url);
    340340            $token = WPAL2Int::Get_access_token($user_ID);
     
    373373        // Get likes
    374374        static function Get_fb_likes($user_ID, $id) {
    375             $url = 'https://graph.facebook.com/' . $id . '/likes';
     375            $url = 'https://graph.facebook.com/v2.2/' . $id . '/likes';
    376376            $url = apply_filters('al2fb_url', $url);
    377377            $token = WPAL2Int::Get_access_token($user_ID);
     
    402402        static function Get_fb_feed($user_ID) {
    403403            $page_id = WPAL2Int::Get_page_id($user_ID, false);
    404             $url = 'https://graph.facebook.com/' . $page_id . '/feed';
     404            $url = 'https://graph.facebook.com/v2.2/' . $page_id . '/feed';
    405405            $url = apply_filters('al2fb_url', $url);
    406406            $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id);
     
    433433        // (use ?type=square | small | normal | large to request a different photo)
    434434        static function Get_fb_picture_url($id, $size) {
    435             $url = 'https://graph.facebook.com/' . $id . '/picture?' . $size;
     435            $url = 'https://graph.facebook.com/v2.2/' . $id . '/picture?' . $size;
    436436            $url = apply_filters('al2fb_url', $url);
    437437            if (function_exists('curl_init') && !get_option(c_al2fb_option_nocurl)) {
     
    713713                    if ($token) {
    714714                        // Get URL
    715                         $url = 'https://graph.facebook.com/' . $page_id . (get_option(c_al2fb_option_uselinks) ? '/links' : '/feed');
     715                        $url = 'https://graph.facebook.com/v2.2/' . $page_id . (get_option(c_al2fb_option_uselinks) ? '/links' : '/feed');
    716716                        $url = apply_filters('al2fb_url', $url);
    717717
     
    816816                // Do not disturb WordPress
    817817                try {
    818                     $url = 'https://graph.facebook.com/' . $link_id;
     818                    $url = 'https://graph.facebook.com/v2.2/' . $link_id;
    819819                    $url = apply_filters('al2fb_url', $url);
    820820
     
    865865            try {
    866866                // Build request
    867                 $url = 'https://graph.facebook.com/' . $fb_comment_id;
     867                $url = 'https://graph.facebook.com/v2.2/' . $fb_comment_id;
    868868                $url = apply_filters('al2fb_url', $url);
    869869                $query = http_build_query(array(
     
    922922            // Do not disturb WordPress
    923923            try {
    924                 $url = 'https://graph.facebook.com/' . $link_id . '/comments';
     924                $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments';
    925925                $url = apply_filters('al2fb_url', $url);
    926926
     
    978978            // Do not disturb WordPress
    979979            try {
    980                 $url = 'https://graph.facebook.com/' . $link_id . '/comments';
     980                $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments';
    981981                $url = apply_filters('al2fb_url', $url);
    982982
     
    15401540                try {
    15411541                    // Validate
    1542                     $url = 'https://graph.facebook.com/' . $reg['user_id'];
     1542                    $url = 'https://graph.facebook.com/v2.2/' . $reg['user_id'];
    15431543                    $url = apply_filters('al2fb_url', $url);
    15441544                    $query = http_build_query(array('access_token' => $reg['oauth_token']), '', '&');
     
    16251625            try {
    16261626                // Check token
    1627                 $url = 'https://graph.facebook.com/' . $_REQUEST['uid'];
     1627                $url = 'https://graph.facebook.com/v2.2/' . $_REQUEST['uid'];
    16281628                $url = apply_filters('al2fb_url', $url);
    16291629                $query = http_build_query(array('access_token' => $_REQUEST['token']), '', '&');
  • add-link-to-facebook/tags/1.215/add-link-to-facebook.php

    r1083673 r1109471  
    44Plugin URI: http://wordpress.org/extend/plugins/add-link-to-facebook/
    55Description: Automatically add links to published posts to your Facebook wall or pages
    6 Version: 1.214
     6Version: 1.215
    77Author: Marcel Bokhorst
    88Author URI: http://blog.bokhorst.biz/about/
  • add-link-to-facebook/tags/1.215/readme.txt

    r1095767 r1109471  
    33Tags: post, posts, Facebook, social, link, links, permalink, wpmu, admin, comment, comments, shortcode, sidebar, widget, bbPress
    44Requires at least: 3.2
    5 Tested up to: 4.1
    6 Stable tag: 1.214
     5Tested up to: 4.1.1
     6Stable tag: 1.215
    77
    88Automatically add links to published posts or pages to your Facebook wall, pages or groups and more
     
    806806* Reports that everything works are also appreciated :-)
    807807
     808= 1.215 =
     809* Updated to Facebook API 2.2
     810
    808811= 1.214 =
    809812* Removed donation links
     
    812815* Added like/share button options
    813816
    814 = 1.212 =
    815 * Updated security certificates
    816 
    817817== Upgrade Notice ==
    818818
    819 = 1.214 =
    820 Removed donation links
     819= 1.215 =
     820Updated to Facebook API 2.2
    821821
    822822== Setup guide ==
     
    833833    * Or click [here](https://developers.facebook.com/)
    834834    * Click *Register as Developer* if needed
    835     * Click *Apps* (top menu)
    836     * Click *Create a New App*
     835    * Click *My Apps* (top menu)
     836    * Click *Add a New App*
     837    * Click *Website*
    8378382. Create the Facebook application:
    838     * Give it any display name you like (will appear as *via* below the added links), select a category and press *Create App*
     839    * Type a name for the application and click *Create New Facebook App ID*
     840    * Choose an appropriate category for your website and click *Create App ID*
     841    * Click *Skip Quick Start* (top right)
    839842    * Go to the application *Settings* (left menu)
    840     * Fill in a valid *Contact Email*
    841843    * Click *Add Platform* and select *Website*
    842     * Copy the red URL from the Easy setup section of the plugin settings page to the field *Site URL*
    843     * Press the *Save Changes*
     844    * Copy the red URL from the *Easy setup section* of the plugin settings page to the field *Site URL*
     845    * Press *Save Changes*
    844846    * Go to *Status & Review* (left menu)
    845     * Turn *Do you want to make this app ... public* on
    846     * You don't need to submit your application for review if you will be posting to Facebook pages you administrate
     847    * Request the following permissions and supply any other information Facebook requests:
     848        * *publish_actions* (required to add links)
     849        * *user_groups* (required to add links to groups)
     850        * *manage_pages* (required to add links to pages)
     851        * *read_stream* (required to show a Facebook activity feed in a widget)
    8478523. Setup the plugin:
    848853    * Copy the *App ID* and *App Secret* from the Facebook application *Dashboard* to the fields in the Easy setup section of the plugin settings page
    849854    * Press the *Save* button to save the plugin configuration
    850     * Press the *Authorize* button on the plugin settings page, login to Facebook if needed and allow the plugin all requested permissions
    851         * **When Facebook asks you for the access privileges to your profile/pages, do not uncheck anything and do not click "Skip"**
     855    * Press the *Authorize* button on the plugin settings page, login to Facebook if needed
    852856
    853857Please note that you can add links to Facebook pages you administer (own) only.
    854 You can add links to other pages after submitting the permission *manage_pages* for review and getting approval from Facebook.
    855 
    856 Facebook is not very clear about this, but you might need to submit the Facebook application for review if your want to add links to groups:
    857 
    858 * Click *Start a Submission*
    859 * Check the following items:
    860     * App Details
    861     * *user_groups*
    862     * Provide any other information Facebook requests
    863858
    864859Some people need to verify their account before they can create an application.
  • add-link-to-facebook/trunk/add-link-to-facebook-int.php

    r1083673 r1109471  
    4848        static function Authorize_url($user_ID) {
    4949            // http://developers.facebook.com/docs/authentication/permissions
    50             $url = 'https://graph.facebook.com/oauth/authorize';
     50            $url = 'https://graph.facebook.com/v2.2/oauth/authorize';
    5151            $url = apply_filters('al2fb_url', $url);
    5252            $url .= '?client_id=' . urlencode(get_user_meta($user_ID, c_al2fb_meta_client_id, true));
    5353            $url .= '&redirect_uri=' . urlencode(WPAL2Int::Redirect_uri());
    54             $url .= '&scope=read_stream,publish_stream,offline_access,manage_pages,user_groups,publish_actions';
     54            $url .= '&scope=read_stream,manage_pages,user_groups,publish_actions';
    5555            $url .= '&state=' . WPAL2Int::Authorize_secret();
    5656            return $url;
     
    101101        // Request token
    102102        static function Get_fb_token($user_ID) {
    103             $url = 'https://graph.facebook.com/oauth/access_token';
     103            $url = 'https://graph.facebook.com/v2.2/oauth/access_token';
    104104            $url = apply_filters('al2fb_url', $url);
    105105            $query = http_build_query(array(
     
    121121            $token = WPAL2Int::Get_access_token($user_ID);
    122122            if ($token) {
    123                 $url = 'https://graph.facebook.com/oauth/access_token';
     123                $url = 'https://graph.facebook.com/v2.2/oauth/access_token';
    124124                $url = apply_filters('al2fb_url', $url);
    125125                $query = http_build_query(array(
     
    163163        static function Get_fb_application($user_ID) {
    164164            $app_id = get_user_meta($user_ID, c_al2fb_meta_client_id, true);
    165             $url = 'https://graph.facebook.com/' . $app_id;
     165            $url = 'https://graph.facebook.com/v2.2/' . $app_id;
    166166            $url = apply_filters('al2fb_url', $url);
    167167            $token = WPAL2Int::Get_access_token($user_ID);
     
    199199
    200200        static function Get_fb_info($user_ID, $page_id) {
    201             $url = 'https://graph.facebook.com/' . $page_id;
     201            $url = 'https://graph.facebook.com/v2.2/' . $page_id;
    202202            $url = apply_filters('al2fb_url', $url);
    203203            $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id);
     
    238238        // Get page list
    239239        static function Get_fb_pages($user_ID) {
    240             $url = 'https://graph.facebook.com/me/accounts';
     240            $url = 'https://graph.facebook.com/v2.2/me/accounts';
    241241            $url = apply_filters('al2fb_url', $url);
    242242            $token = WPAL2Int::Get_access_token($user_ID);
     
    269269        // Get group list
    270270        static function Get_fb_groups($user_ID) {
    271             $url = 'https://graph.facebook.com/me/groups';
     271            $url = 'https://graph.facebook.com/v2.2/me/groups';
    272272            $url = apply_filters('al2fb_url', $url);
    273273            $token = WPAL2Int::Get_access_token($user_ID);
     
    300300        // Get friend list
    301301        static function Get_fb_friends($user_ID) {
    302             $url = 'https://graph.facebook.com/me/friends';
     302            $url = 'https://graph.facebook.com/v2.2/me/friends';
    303303            $url = apply_filters('al2fb_url', $url);
    304304            $token = WPAL2Int::Get_access_token($user_ID);
     
    310310
    311311        static function Get_fb_permissions($user_ID, $id) {
    312             $url = 'https://graph.facebook.com/' . $id . '/permissions';
     312            $url = 'https://graph.facebook.com/v2.2/' . $id . '/permissions';
    313313            $url = apply_filters('al2fb_url', $url);
    314314            $token = WPAL2Int::Get_access_token($user_ID);
     
    336336        // Get comments
    337337        static function Get_fb_comments($user_ID, $id) {
    338             $url = 'https://graph.facebook.com/' . $id . '/comments';
     338            $url = 'https://graph.facebook.com/v2.2/' . $id . '/comments';
    339339            $url = apply_filters('al2fb_url', $url);
    340340            $token = WPAL2Int::Get_access_token($user_ID);
     
    373373        // Get likes
    374374        static function Get_fb_likes($user_ID, $id) {
    375             $url = 'https://graph.facebook.com/' . $id . '/likes';
     375            $url = 'https://graph.facebook.com/v2.2/' . $id . '/likes';
    376376            $url = apply_filters('al2fb_url', $url);
    377377            $token = WPAL2Int::Get_access_token($user_ID);
     
    402402        static function Get_fb_feed($user_ID) {
    403403            $page_id = WPAL2Int::Get_page_id($user_ID, false);
    404             $url = 'https://graph.facebook.com/' . $page_id . '/feed';
     404            $url = 'https://graph.facebook.com/v2.2/' . $page_id . '/feed';
    405405            $url = apply_filters('al2fb_url', $url);
    406406            $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id);
     
    433433        // (use ?type=square | small | normal | large to request a different photo)
    434434        static function Get_fb_picture_url($id, $size) {
    435             $url = 'https://graph.facebook.com/' . $id . '/picture?' . $size;
     435            $url = 'https://graph.facebook.com/v2.2/' . $id . '/picture?' . $size;
    436436            $url = apply_filters('al2fb_url', $url);
    437437            if (function_exists('curl_init') && !get_option(c_al2fb_option_nocurl)) {
     
    713713                    if ($token) {
    714714                        // Get URL
    715                         $url = 'https://graph.facebook.com/' . $page_id . (get_option(c_al2fb_option_uselinks) ? '/links' : '/feed');
     715                        $url = 'https://graph.facebook.com/v2.2/' . $page_id . (get_option(c_al2fb_option_uselinks) ? '/links' : '/feed');
    716716                        $url = apply_filters('al2fb_url', $url);
    717717
     
    816816                // Do not disturb WordPress
    817817                try {
    818                     $url = 'https://graph.facebook.com/' . $link_id;
     818                    $url = 'https://graph.facebook.com/v2.2/' . $link_id;
    819819                    $url = apply_filters('al2fb_url', $url);
    820820
     
    865865            try {
    866866                // Build request
    867                 $url = 'https://graph.facebook.com/' . $fb_comment_id;
     867                $url = 'https://graph.facebook.com/v2.2/' . $fb_comment_id;
    868868                $url = apply_filters('al2fb_url', $url);
    869869                $query = http_build_query(array(
     
    922922            // Do not disturb WordPress
    923923            try {
    924                 $url = 'https://graph.facebook.com/' . $link_id . '/comments';
     924                $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments';
    925925                $url = apply_filters('al2fb_url', $url);
    926926
     
    978978            // Do not disturb WordPress
    979979            try {
    980                 $url = 'https://graph.facebook.com/' . $link_id . '/comments';
     980                $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments';
    981981                $url = apply_filters('al2fb_url', $url);
    982982
     
    15401540                try {
    15411541                    // Validate
    1542                     $url = 'https://graph.facebook.com/' . $reg['user_id'];
     1542                    $url = 'https://graph.facebook.com/v2.2/' . $reg['user_id'];
    15431543                    $url = apply_filters('al2fb_url', $url);
    15441544                    $query = http_build_query(array('access_token' => $reg['oauth_token']), '', '&');
     
    16251625            try {
    16261626                // Check token
    1627                 $url = 'https://graph.facebook.com/' . $_REQUEST['uid'];
     1627                $url = 'https://graph.facebook.com/v2.2/' . $_REQUEST['uid'];
    16281628                $url = apply_filters('al2fb_url', $url);
    16291629                $query = http_build_query(array('access_token' => $_REQUEST['token']), '', '&');
  • add-link-to-facebook/trunk/add-link-to-facebook.php

    r1083673 r1109471  
    44Plugin URI: http://wordpress.org/extend/plugins/add-link-to-facebook/
    55Description: Automatically add links to published posts to your Facebook wall or pages
    6 Version: 1.214
     6Version: 1.215
    77Author: Marcel Bokhorst
    88Author URI: http://blog.bokhorst.biz/about/
  • add-link-to-facebook/trunk/readme.txt

    r1095767 r1109471  
    33Tags: post, posts, Facebook, social, link, links, permalink, wpmu, admin, comment, comments, shortcode, sidebar, widget, bbPress
    44Requires at least: 3.2
    5 Tested up to: 4.1
    6 Stable tag: 1.214
     5Tested up to: 4.1.1
     6Stable tag: 1.215
    77
    88Automatically add links to published posts or pages to your Facebook wall, pages or groups and more
     
    806806* Reports that everything works are also appreciated :-)
    807807
     808= 1.215 =
     809* Updated to Facebook API 2.2
     810
    808811= 1.214 =
    809812* Removed donation links
     
    812815* Added like/share button options
    813816
    814 = 1.212 =
    815 * Updated security certificates
    816 
    817817== Upgrade Notice ==
    818818
    819 = 1.214 =
    820 Removed donation links
     819= 1.215 =
     820Updated to Facebook API 2.2
    821821
    822822== Setup guide ==
     
    833833    * Or click [here](https://developers.facebook.com/)
    834834    * Click *Register as Developer* if needed
    835     * Click *Apps* (top menu)
    836     * Click *Create a New App*
     835    * Click *My Apps* (top menu)
     836    * Click *Add a New App*
     837    * Click *Website*
    8378382. Create the Facebook application:
    838     * Give it any display name you like (will appear as *via* below the added links), select a category and press *Create App*
     839    * Type a name for the application and click *Create New Facebook App ID*
     840    * Choose an appropriate category for your website and click *Create App ID*
     841    * Click *Skip Quick Start* (top right)
    839842    * Go to the application *Settings* (left menu)
    840     * Fill in a valid *Contact Email*
    841843    * Click *Add Platform* and select *Website*
    842     * Copy the red URL from the Easy setup section of the plugin settings page to the field *Site URL*
    843     * Press the *Save Changes*
     844    * Copy the red URL from the *Easy setup section* of the plugin settings page to the field *Site URL*
     845    * Press *Save Changes*
    844846    * Go to *Status & Review* (left menu)
    845     * Turn *Do you want to make this app ... public* on
    846     * You don't need to submit your application for review if you will be posting to Facebook pages you administrate
     847    * Request the following permissions and supply any other information Facebook requests:
     848        * *publish_actions* (required to add links)
     849        * *user_groups* (required to add links to groups)
     850        * *manage_pages* (required to add links to pages)
     851        * *read_stream* (required to show a Facebook activity feed in a widget)
    8478523. Setup the plugin:
    848853    * Copy the *App ID* and *App Secret* from the Facebook application *Dashboard* to the fields in the Easy setup section of the plugin settings page
    849854    * Press the *Save* button to save the plugin configuration
    850     * Press the *Authorize* button on the plugin settings page, login to Facebook if needed and allow the plugin all requested permissions
    851         * **When Facebook asks you for the access privileges to your profile/pages, do not uncheck anything and do not click "Skip"**
     855    * Press the *Authorize* button on the plugin settings page, login to Facebook if needed
    852856
    853857Please note that you can add links to Facebook pages you administer (own) only.
    854 You can add links to other pages after submitting the permission *manage_pages* for review and getting approval from Facebook.
    855 
    856 Facebook is not very clear about this, but you might need to submit the Facebook application for review if your want to add links to groups:
    857 
    858 * Click *Start a Submission*
    859 * Check the following items:
    860     * App Details
    861     * *user_groups*
    862     * Provide any other information Facebook requests
    863858
    864859Some people need to verify their account before they can create an application.
Note: See TracChangeset for help on using the changeset viewer.