Changeset 711609
- Timestamp:
- 05/12/2013 05:28:54 AM (13 years ago)
- Location:
- globalfeed/trunk
- Files:
-
- 2 edited
-
feeds/mb_facebook/mb_facebook.php (modified) (5 diffs)
-
mb_globalfeed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
globalfeed/trunk/feeds/mb_facebook/mb_facebook.php
r711217 r711609 645 645 wp_verify_nonce( 'facebook-connect-settings_main' ); 646 646 647 $res = $this->update_feed( );647 $res = $this->update_feed(array()); 648 648 649 649 if ( is_int($res) ) … … 696 696 $feed_items = array(); 697 697 foreach ($updates->data as $update) { 698 699 698 $update->id = explode('_', $update->id); 700 699 $page_id = $update->id[0]; … … 758 757 // The link is to a youtube video. Extract the id, then call the embedder. 759 758 $post_args['meta']['video_source'] = 'youtube'; 760 $post_args['meta']['youtube_id'] = substr( $post_args['meta']['link'], strripos( $post_args['meta']['link'], '/' ) + 9 ); 759 $globalfeed->print_debug_info("Parsing youtube id:" . $post_args['meta']['link']); 760 parse_str( parse_url( $post_args['meta']['link'], PHP_URL_QUERY ), $url_params ); 761 $post_args['meta']['youtube_id'] = $url_params['v']; 762 // $post_args['meta']['youtube_id'] = substr( $post_args['meta']['link'], strripos( $post_args['meta']['link'], '/' ) + 9 ); 761 763 762 764 $content_args['media_format'] = 'video'; … … 764 766 } 765 767 } 766 // Let GlobalFeed embed the content of required.767 768 768 break; 769 769 case 'link' : … … 850 850 851 851 // The $content_args array will contain information about any media to be embedded in the content 852 $content_args = apply_filters('mb_globalfeed_fb_post_content_args', $content_args, $post_args); 852 853 $post_args['post_content'] = $globalfeed->post_content(isset($update->message) ? $update->message : $update->story, $content_args); 853 854 -
globalfeed/trunk/mb_globalfeed.php
r711217 r711609 1681 1681 1682 1682 // First check if there is a set word limit 1683 if ( isset($args[' character_count']) && $args['word_count'] !== false ) {1683 if ( isset($args['word_count']) && $args['word_count'] !== false ) { 1684 1684 $words = explode(' ', $content); 1685 1685 $content = implode(' ', array_slice($words, 0, $args['word_count']));
Note: See TracChangeset
for help on using the changeset viewer.