Changeset 1109471
- Timestamp:
- 03/10/2015 01:58:04 PM (11 years ago)
- Location:
- add-link-to-facebook
- Files:
-
- 6 edited
- 1 copied
-
tags/1.215 (copied) (copied from add-link-to-facebook/trunk)
-
tags/1.215/add-link-to-facebook-int.php (modified) (20 diffs)
-
tags/1.215/add-link-to-facebook.php (modified) (1 diff)
-
tags/1.215/readme.txt (modified) (4 diffs)
-
trunk/add-link-to-facebook-int.php (modified) (20 diffs)
-
trunk/add-link-to-facebook.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-link-to-facebook/tags/1.215/add-link-to-facebook-int.php
r1083673 r1109471 48 48 static function Authorize_url($user_ID) { 49 49 // 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'; 51 51 $url = apply_filters('al2fb_url', $url); 52 52 $url .= '?client_id=' . urlencode(get_user_meta($user_ID, c_al2fb_meta_client_id, true)); 53 53 $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'; 55 55 $url .= '&state=' . WPAL2Int::Authorize_secret(); 56 56 return $url; … … 101 101 // Request token 102 102 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'; 104 104 $url = apply_filters('al2fb_url', $url); 105 105 $query = http_build_query(array( … … 121 121 $token = WPAL2Int::Get_access_token($user_ID); 122 122 if ($token) { 123 $url = 'https://graph.facebook.com/ oauth/access_token';123 $url = 'https://graph.facebook.com/v2.2/oauth/access_token'; 124 124 $url = apply_filters('al2fb_url', $url); 125 125 $query = http_build_query(array( … … 163 163 static function Get_fb_application($user_ID) { 164 164 $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; 166 166 $url = apply_filters('al2fb_url', $url); 167 167 $token = WPAL2Int::Get_access_token($user_ID); … … 199 199 200 200 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; 202 202 $url = apply_filters('al2fb_url', $url); 203 203 $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id); … … 238 238 // Get page list 239 239 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'; 241 241 $url = apply_filters('al2fb_url', $url); 242 242 $token = WPAL2Int::Get_access_token($user_ID); … … 269 269 // Get group list 270 270 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'; 272 272 $url = apply_filters('al2fb_url', $url); 273 273 $token = WPAL2Int::Get_access_token($user_ID); … … 300 300 // Get friend list 301 301 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'; 303 303 $url = apply_filters('al2fb_url', $url); 304 304 $token = WPAL2Int::Get_access_token($user_ID); … … 310 310 311 311 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'; 313 313 $url = apply_filters('al2fb_url', $url); 314 314 $token = WPAL2Int::Get_access_token($user_ID); … … 336 336 // Get comments 337 337 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'; 339 339 $url = apply_filters('al2fb_url', $url); 340 340 $token = WPAL2Int::Get_access_token($user_ID); … … 373 373 // Get likes 374 374 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'; 376 376 $url = apply_filters('al2fb_url', $url); 377 377 $token = WPAL2Int::Get_access_token($user_ID); … … 402 402 static function Get_fb_feed($user_ID) { 403 403 $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'; 405 405 $url = apply_filters('al2fb_url', $url); 406 406 $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id); … … 433 433 // (use ?type=square | small | normal | large to request a different photo) 434 434 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; 436 436 $url = apply_filters('al2fb_url', $url); 437 437 if (function_exists('curl_init') && !get_option(c_al2fb_option_nocurl)) { … … 713 713 if ($token) { 714 714 // 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'); 716 716 $url = apply_filters('al2fb_url', $url); 717 717 … … 816 816 // Do not disturb WordPress 817 817 try { 818 $url = 'https://graph.facebook.com/ ' . $link_id;818 $url = 'https://graph.facebook.com/v2.2/' . $link_id; 819 819 $url = apply_filters('al2fb_url', $url); 820 820 … … 865 865 try { 866 866 // Build request 867 $url = 'https://graph.facebook.com/ ' . $fb_comment_id;867 $url = 'https://graph.facebook.com/v2.2/' . $fb_comment_id; 868 868 $url = apply_filters('al2fb_url', $url); 869 869 $query = http_build_query(array( … … 922 922 // Do not disturb WordPress 923 923 try { 924 $url = 'https://graph.facebook.com/ ' . $link_id . '/comments';924 $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments'; 925 925 $url = apply_filters('al2fb_url', $url); 926 926 … … 978 978 // Do not disturb WordPress 979 979 try { 980 $url = 'https://graph.facebook.com/ ' . $link_id . '/comments';980 $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments'; 981 981 $url = apply_filters('al2fb_url', $url); 982 982 … … 1540 1540 try { 1541 1541 // Validate 1542 $url = 'https://graph.facebook.com/ ' . $reg['user_id'];1542 $url = 'https://graph.facebook.com/v2.2/' . $reg['user_id']; 1543 1543 $url = apply_filters('al2fb_url', $url); 1544 1544 $query = http_build_query(array('access_token' => $reg['oauth_token']), '', '&'); … … 1625 1625 try { 1626 1626 // Check token 1627 $url = 'https://graph.facebook.com/ ' . $_REQUEST['uid'];1627 $url = 'https://graph.facebook.com/v2.2/' . $_REQUEST['uid']; 1628 1628 $url = apply_filters('al2fb_url', $url); 1629 1629 $query = http_build_query(array('access_token' => $_REQUEST['token']), '', '&'); -
add-link-to-facebook/tags/1.215/add-link-to-facebook.php
r1083673 r1109471 4 4 Plugin URI: http://wordpress.org/extend/plugins/add-link-to-facebook/ 5 5 Description: Automatically add links to published posts to your Facebook wall or pages 6 Version: 1.21 46 Version: 1.215 7 7 Author: Marcel Bokhorst 8 8 Author URI: http://blog.bokhorst.biz/about/ -
add-link-to-facebook/tags/1.215/readme.txt
r1095767 r1109471 3 3 Tags: post, posts, Facebook, social, link, links, permalink, wpmu, admin, comment, comments, shortcode, sidebar, widget, bbPress 4 4 Requires at least: 3.2 5 Tested up to: 4.1 6 Stable tag: 1.21 45 Tested up to: 4.1.1 6 Stable tag: 1.215 7 7 8 8 Automatically add links to published posts or pages to your Facebook wall, pages or groups and more … … 806 806 * Reports that everything works are also appreciated :-) 807 807 808 = 1.215 = 809 * Updated to Facebook API 2.2 810 808 811 = 1.214 = 809 812 * Removed donation links … … 812 815 * Added like/share button options 813 816 814 = 1.212 =815 * Updated security certificates816 817 817 == Upgrade Notice == 818 818 819 = 1.21 4=820 Removed donation links 819 = 1.215 = 820 Updated to Facebook API 2.2 821 821 822 822 == Setup guide == … … 833 833 * Or click [here](https://developers.facebook.com/) 834 834 * 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* 837 838 2. 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) 839 842 * Go to the application *Settings* (left menu) 840 * Fill in a valid *Contact Email*841 843 * Click *Add Platform* and select *Website* 842 * Copy the red URL from the Easy setup sectionof 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* 844 846 * 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) 847 852 3. Setup the plugin: 848 853 * 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 849 854 * 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 852 856 853 857 Please 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 Details861 * *user_groups*862 * Provide any other information Facebook requests863 858 864 859 Some 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 48 48 static function Authorize_url($user_ID) { 49 49 // 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'; 51 51 $url = apply_filters('al2fb_url', $url); 52 52 $url .= '?client_id=' . urlencode(get_user_meta($user_ID, c_al2fb_meta_client_id, true)); 53 53 $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'; 55 55 $url .= '&state=' . WPAL2Int::Authorize_secret(); 56 56 return $url; … … 101 101 // Request token 102 102 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'; 104 104 $url = apply_filters('al2fb_url', $url); 105 105 $query = http_build_query(array( … … 121 121 $token = WPAL2Int::Get_access_token($user_ID); 122 122 if ($token) { 123 $url = 'https://graph.facebook.com/ oauth/access_token';123 $url = 'https://graph.facebook.com/v2.2/oauth/access_token'; 124 124 $url = apply_filters('al2fb_url', $url); 125 125 $query = http_build_query(array( … … 163 163 static function Get_fb_application($user_ID) { 164 164 $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; 166 166 $url = apply_filters('al2fb_url', $url); 167 167 $token = WPAL2Int::Get_access_token($user_ID); … … 199 199 200 200 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; 202 202 $url = apply_filters('al2fb_url', $url); 203 203 $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id); … … 238 238 // Get page list 239 239 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'; 241 241 $url = apply_filters('al2fb_url', $url); 242 242 $token = WPAL2Int::Get_access_token($user_ID); … … 269 269 // Get group list 270 270 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'; 272 272 $url = apply_filters('al2fb_url', $url); 273 273 $token = WPAL2Int::Get_access_token($user_ID); … … 300 300 // Get friend list 301 301 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'; 303 303 $url = apply_filters('al2fb_url', $url); 304 304 $token = WPAL2Int::Get_access_token($user_ID); … … 310 310 311 311 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'; 313 313 $url = apply_filters('al2fb_url', $url); 314 314 $token = WPAL2Int::Get_access_token($user_ID); … … 336 336 // Get comments 337 337 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'; 339 339 $url = apply_filters('al2fb_url', $url); 340 340 $token = WPAL2Int::Get_access_token($user_ID); … … 373 373 // Get likes 374 374 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'; 376 376 $url = apply_filters('al2fb_url', $url); 377 377 $token = WPAL2Int::Get_access_token($user_ID); … … 402 402 static function Get_fb_feed($user_ID) { 403 403 $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'; 405 405 $url = apply_filters('al2fb_url', $url); 406 406 $token = WPAL2Int::Get_access_token_by_page($user_ID, $page_id); … … 433 433 // (use ?type=square | small | normal | large to request a different photo) 434 434 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; 436 436 $url = apply_filters('al2fb_url', $url); 437 437 if (function_exists('curl_init') && !get_option(c_al2fb_option_nocurl)) { … … 713 713 if ($token) { 714 714 // 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'); 716 716 $url = apply_filters('al2fb_url', $url); 717 717 … … 816 816 // Do not disturb WordPress 817 817 try { 818 $url = 'https://graph.facebook.com/ ' . $link_id;818 $url = 'https://graph.facebook.com/v2.2/' . $link_id; 819 819 $url = apply_filters('al2fb_url', $url); 820 820 … … 865 865 try { 866 866 // Build request 867 $url = 'https://graph.facebook.com/ ' . $fb_comment_id;867 $url = 'https://graph.facebook.com/v2.2/' . $fb_comment_id; 868 868 $url = apply_filters('al2fb_url', $url); 869 869 $query = http_build_query(array( … … 922 922 // Do not disturb WordPress 923 923 try { 924 $url = 'https://graph.facebook.com/ ' . $link_id . '/comments';924 $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments'; 925 925 $url = apply_filters('al2fb_url', $url); 926 926 … … 978 978 // Do not disturb WordPress 979 979 try { 980 $url = 'https://graph.facebook.com/ ' . $link_id . '/comments';980 $url = 'https://graph.facebook.com/v2.2/' . $link_id . '/comments'; 981 981 $url = apply_filters('al2fb_url', $url); 982 982 … … 1540 1540 try { 1541 1541 // Validate 1542 $url = 'https://graph.facebook.com/ ' . $reg['user_id'];1542 $url = 'https://graph.facebook.com/v2.2/' . $reg['user_id']; 1543 1543 $url = apply_filters('al2fb_url', $url); 1544 1544 $query = http_build_query(array('access_token' => $reg['oauth_token']), '', '&'); … … 1625 1625 try { 1626 1626 // Check token 1627 $url = 'https://graph.facebook.com/ ' . $_REQUEST['uid'];1627 $url = 'https://graph.facebook.com/v2.2/' . $_REQUEST['uid']; 1628 1628 $url = apply_filters('al2fb_url', $url); 1629 1629 $query = http_build_query(array('access_token' => $_REQUEST['token']), '', '&'); -
add-link-to-facebook/trunk/add-link-to-facebook.php
r1083673 r1109471 4 4 Plugin URI: http://wordpress.org/extend/plugins/add-link-to-facebook/ 5 5 Description: Automatically add links to published posts to your Facebook wall or pages 6 Version: 1.21 46 Version: 1.215 7 7 Author: Marcel Bokhorst 8 8 Author URI: http://blog.bokhorst.biz/about/ -
add-link-to-facebook/trunk/readme.txt
r1095767 r1109471 3 3 Tags: post, posts, Facebook, social, link, links, permalink, wpmu, admin, comment, comments, shortcode, sidebar, widget, bbPress 4 4 Requires at least: 3.2 5 Tested up to: 4.1 6 Stable tag: 1.21 45 Tested up to: 4.1.1 6 Stable tag: 1.215 7 7 8 8 Automatically add links to published posts or pages to your Facebook wall, pages or groups and more … … 806 806 * Reports that everything works are also appreciated :-) 807 807 808 = 1.215 = 809 * Updated to Facebook API 2.2 810 808 811 = 1.214 = 809 812 * Removed donation links … … 812 815 * Added like/share button options 813 816 814 = 1.212 =815 * Updated security certificates816 817 817 == Upgrade Notice == 818 818 819 = 1.21 4=820 Removed donation links 819 = 1.215 = 820 Updated to Facebook API 2.2 821 821 822 822 == Setup guide == … … 833 833 * Or click [here](https://developers.facebook.com/) 834 834 * 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* 837 838 2. 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) 839 842 * Go to the application *Settings* (left menu) 840 * Fill in a valid *Contact Email*841 843 * Click *Add Platform* and select *Website* 842 * Copy the red URL from the Easy setup sectionof 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* 844 846 * 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) 847 852 3. Setup the plugin: 848 853 * 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 849 854 * 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 852 856 853 857 Please 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 Details861 * *user_groups*862 * Provide any other information Facebook requests863 858 864 859 Some people need to verify their account before they can create an application.
Note: See TracChangeset
for help on using the changeset viewer.