Changeset 1167594
- Timestamp:
- 05/26/2015 09:36:02 AM (11 years ago)
- Location:
- keyring-reactions-importer
- Files:
-
- 4 edited
- 4 copied
-
tags/1.1 (copied) (copied from keyring-reactions-importer/trunk)
-
tags/1.1/importers (copied) (copied from keyring-reactions-importer/trunk/importers)
-
tags/1.1/importers/keyring-reactions-facebook.php (modified) (3 diffs)
-
tags/1.1/keyring-reactions-importer.php (copied) (copied from keyring-reactions-importer/trunk/keyring-reactions-importer.php) (4 diffs)
-
tags/1.1/readme.txt (copied) (copied from keyring-reactions-importer/trunk/readme.txt) (2 diffs)
-
trunk/importers/keyring-reactions-facebook.php (modified) (3 diffs)
-
trunk/keyring-reactions-importer.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
keyring-reactions-importer/tags/1.1/importers/keyring-reactions-facebook.php
r1152502 r1167594 57 57 ); 58 58 59 return $this->$func ( $post_id, $silo_id ); 59 $user_id = $this->service->token->meta['user_id']; 60 61 return $this->$func ( $post_id, $silo_id, $user_id ); 60 62 } 61 63 … … 64 66 */ 65 67 66 function get_likes ( $post_id, $silo_id ) {68 function get_likes ( $post_id, $silo_id, $user_id ) { 67 69 $res = array(); 68 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s /likes?", static::GRAPHAPI, $silo_id );70 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s_%s/likes?", static::GRAPHAPI, $user_id, $silo_id ); 69 71 70 72 $params = array( … … 111 113 */ 112 114 113 function get_comments ( $post_id, $silo_id ) {115 function get_comments ( $post_id, $silo_id, $user_id ) { 114 116 $res = array(); 115 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s /comments?", static::GRAPHAPI, $silo_id );117 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s_%s/comments?", static::GRAPHAPI, $user_id, $silo_id ); 116 118 117 119 $params = array( -
keyring-reactions-importer/tags/1.1/keyring-reactions-importer.php
r1152502 r1167594 4 4 Plugin URI: https://github.com/petermolnar/keyring-reactions-importer 5 5 Description: A recations (comments, favs, etc. ) importer based on Keyring 6 Version: 1. 06 Version: 1.1 7 7 Author: Peter Molnar <[email protected]> 8 8 Author URI: http://petermolnar.eu/ … … 99 99 add_action( 'keyring_connection_verified', array( &$this, 'verified_connection' ), 10, 2 ); 100 100 101 add_action( 'add_meta_boxes', array(&$this, 'add_post_meta_box' ));102 add_action( 'save_post', array(&$this, 'handle_post_meta_box' ) );101 //add_action( 'add_meta_boxes', array(&$this, 'add_post_meta_box' )); 102 //add_action( 'save_post', array(&$this, 'handle_post_meta_box' ) ); 103 103 104 104 // additional comment types … … 791 791 function display_post_meta_box() { 792 792 wp_nonce_field( basename( __FILE__ ), static::SILONAME ); 793 global $post; 793 794 ?> 794 795 <p> 795 796 <?php 796 printf ( '<input style="margin-right: 1em;" class="button button-primary " "id="import-%s" name="import-%s" type="submit" value="Import "></input>', static::SLUG, static::SLUG, static::SLUG, static::SLUG);797 printf ( '<input style="margin-right: 1em;" class="button button-primary " "id="import-%s" name="import-%s" type="submit" value="Import for #%s"></input>', static::SLUG, static::SLUG, $post->ID ); 797 798 printf ('<label for="import-%s">%s</label><br />', static::SLUG, sprintf(__('Manually import reactions from %s for this post now'), static::SILONAME )); 798 799 ?> … … 817 818 818 819 if (isset( $_POST['import-' . static::SLUG ] )) { 819 die ('eddig ok'); 820 $this->do_single_import( $post_id ); 820 $id = split('#', $_POST['import-' . static::SLUG ]); 821 $id = $id[1]; 822 $this->do_single_import( $id ); 821 823 } 822 824 -
keyring-reactions-importer/tags/1.1/readme.txt
r1152502 r1167594 4 4 Requires at least: 3.0 5 5 Tested up to: 4.2.1 6 Stable tag: 1. 06 Stable tag: 1.1 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 54 54 == Changelog == 55 55 56 = 1.1 = 57 *2015-05-26* 58 59 * Facebook broke it's API... again. Fixed. 60 61 56 62 = 1.0 = 57 63 *2015-05-01* -
keyring-reactions-importer/trunk/importers/keyring-reactions-facebook.php
r1152502 r1167594 57 57 ); 58 58 59 return $this->$func ( $post_id, $silo_id ); 59 $user_id = $this->service->token->meta['user_id']; 60 61 return $this->$func ( $post_id, $silo_id, $user_id ); 60 62 } 61 63 … … 64 66 */ 65 67 66 function get_likes ( $post_id, $silo_id ) {68 function get_likes ( $post_id, $silo_id, $user_id ) { 67 69 $res = array(); 68 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s /likes?", static::GRAPHAPI, $silo_id );70 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s_%s/likes?", static::GRAPHAPI, $user_id, $silo_id ); 69 71 70 72 $params = array( … … 111 113 */ 112 114 113 function get_comments ( $post_id, $silo_id ) {115 function get_comments ( $post_id, $silo_id, $user_id ) { 114 116 $res = array(); 115 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s /comments?", static::GRAPHAPI, $silo_id );117 $baseurl = sprintf( "https://graph.facebook.com/v%s/%s_%s/comments?", static::GRAPHAPI, $user_id, $silo_id ); 116 118 117 119 $params = array( -
keyring-reactions-importer/trunk/keyring-reactions-importer.php
r1152502 r1167594 4 4 Plugin URI: https://github.com/petermolnar/keyring-reactions-importer 5 5 Description: A recations (comments, favs, etc. ) importer based on Keyring 6 Version: 1. 06 Version: 1.1 7 7 Author: Peter Molnar <[email protected]> 8 8 Author URI: http://petermolnar.eu/ … … 99 99 add_action( 'keyring_connection_verified', array( &$this, 'verified_connection' ), 10, 2 ); 100 100 101 add_action( 'add_meta_boxes', array(&$this, 'add_post_meta_box' ));102 add_action( 'save_post', array(&$this, 'handle_post_meta_box' ) );101 //add_action( 'add_meta_boxes', array(&$this, 'add_post_meta_box' )); 102 //add_action( 'save_post', array(&$this, 'handle_post_meta_box' ) ); 103 103 104 104 // additional comment types … … 791 791 function display_post_meta_box() { 792 792 wp_nonce_field( basename( __FILE__ ), static::SILONAME ); 793 global $post; 793 794 ?> 794 795 <p> 795 796 <?php 796 printf ( '<input style="margin-right: 1em;" class="button button-primary " "id="import-%s" name="import-%s" type="submit" value="Import "></input>', static::SLUG, static::SLUG, static::SLUG, static::SLUG);797 printf ( '<input style="margin-right: 1em;" class="button button-primary " "id="import-%s" name="import-%s" type="submit" value="Import for #%s"></input>', static::SLUG, static::SLUG, $post->ID ); 797 798 printf ('<label for="import-%s">%s</label><br />', static::SLUG, sprintf(__('Manually import reactions from %s for this post now'), static::SILONAME )); 798 799 ?> … … 817 818 818 819 if (isset( $_POST['import-' . static::SLUG ] )) { 819 die ('eddig ok'); 820 $this->do_single_import( $post_id ); 820 $id = split('#', $_POST['import-' . static::SLUG ]); 821 $id = $id[1]; 822 $this->do_single_import( $id ); 821 823 } 822 824 -
keyring-reactions-importer/trunk/readme.txt
r1152502 r1167594 4 4 Requires at least: 3.0 5 5 Tested up to: 4.2.1 6 Stable tag: 1. 06 Stable tag: 1.1 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 54 54 == Changelog == 55 55 56 = 1.1 = 57 *2015-05-26* 58 59 * Facebook broke it's API... again. Fixed. 60 61 56 62 = 1.0 = 57 63 *2015-05-01*
Note: See TracChangeset
for help on using the changeset viewer.