Index: src/bp-activity/bp-activity-classes.php
===================================================================
--- src/bp-activity/bp-activity-classes.php
+++ src/bp-activity/bp-activity-classes.php
@@ -13,3 +13,8 @@
 require dirname( __FILE__ ) . '/classes/class-bp-activity-activity.php';
 require dirname( __FILE__ ) . '/classes/class-bp-activity-feed.php';
 require dirname( __FILE__ ) . '/classes/class-bp-activity-query.php';
+
+// Embeds - only applicable for WP 4.5+
+if ( bp_get_major_wp_version() >= 4.5 && bp_is_active( 'activity', 'embeds' ) ) {
+	require dirname( __FILE__ ) . '/classes/class-bp-activity-oembed-component.php';
+}
\ No newline at end of file
Index: src/bp-activity/bp-activity-embeds.php
new file mode 100644
===================================================================
--- /dev/null
+++ src/bp-activity/bp-activity-embeds.php
@@ -0,0 +1,211 @@
+<?php
+/**
+ * Functions related to embedding single activity items externally.
+ *
+ * Relies on WordPress 4.5.
+ *
+ * @since 2.6.0
+ *
+ * @package BuddyPress
+ * @subpackage ActivityEmbeds
+ */
+
+// Exit if accessed directly.
+defined( 'ABSPATH' ) || exit;
+
+/**
+ * Loads our activity oEmbed component.
+ *
+ * @since 2.6.0
+ */
+function bp_activity_setup_oembed() {
+	if ( bp_get_major_wp_version() >= 4.5 && bp_is_active( 'activity', 'embeds' ) ) {
+		buddypress()->activity->oembed = new BP_Activity_oEmbed_Component;
+	}
+
+	add_filter( 'bp_activity_get_embed_excerpt', 'wptexturize' );
+	add_filter( 'bp_activity_get_embed_excerpt', 'convert_chars' );
+	add_filter( 'bp_activity_get_embed_excerpt', 'make_clickable', 9 );
+	add_filter( 'bp_activity_get_embed_excerpt', 'bp_activity_at_name_filter' );
+	add_filter( 'bp_activity_get_embed_excerpt', 'convert_smilies', 20 );
+	add_filter( 'bp_activity_get_embed_excerpt', 'wpautop', 30 );
+}
+add_action( 'bp_loaded', 'bp_activity_setup_oembed' );
+
+/**
+ * Add inline styles for BP activity embeds.
+ *
+ * This is subject to change or be removed entirely for a different system.
+ * See PHPDoc for BP_Legacy::locate_asset_in_stack().
+ *
+ * @since  2.6.0
+ * @access private
+ */
+function _bp_activity_embed_add_inline_styles() {
+	$inline_css = <<<EOD
+
+#wp-embed-header:after {
+	clear: both;
+	content: "";
+	display: table;
+	margin-bottom: 1em;
+}
+
+.wp-embed-avatar {
+	float: left;
+	margin: 0 .75em 0 0;
+}
+
+p.wp-embed-heading {
+	font-size: 16px;
+	margin-bottom: 0;
+}
+
+.wp-embed-excerpt, p.wp-embed-timestamp {
+	margin-bottom: .5em;
+}
+
+.wp-embed-excerpt a {
+	color: #21759b;
+	display: inline-block;
+	overflow: hidden;
+	text-overflow: ellipsis;
+	vertical-align: top;
+	white-space: nowrap;
+	max-width: 250px;
+}
+
+.bp-activity-embed-display-media {
+	height: auto;
+	max-width: 550px;
+}
+
+.bp-activity-embed-display-media img {
+	height: auto;
+	max-width: 100%;
+}
+
+.activity-read-more {
+	margin-left: .5em;
+}
+
+.activity-read-more a {
+	color: #b4b9be;
+}
+
+.wp-embed-footer {
+	margin-top: 20px;
+}
+
+EOD;
+
+	// Piggyback off of 'open-sans' handle so we can use our inline CSS.
+	wp_add_inline_style( 'open-sans', $inline_css );
+}
+add_action( 'bp_enqueue_embed_scripts', '_bp_activity_embed_add_inline_styles' );
+
+/**
+ * Outputs excerpt for an activity embed item.
+ *
+ * @since 2.6.0
+ */
+function bp_activity_embed_excerpt( $content = '' ) {
+	echo bp_activity_get_embed_excerpt( $content = '' );
+}
+
+	/**
+	 * Generates excerpt for an activity embed item.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  string $content The content to generate an excerpt for.
+	 * @return string
+	 */
+	function bp_activity_get_embed_excerpt( $content = '' ) {
+		if ( empty( $content ) && ! empty( $GLOBALS['activities_template']->in_the_loop ) ) {
+			$content = $GLOBALS['activities_template']->activity->content;
+
+			// No content, so use action value.
+			if ( empty( $content ) ) {
+				$action = bp_activity_get_action( bp_get_activity_object_name(), bp_get_activity_type() );
+				$content = false !== $action ? $action['value'] : '';
+			}
+		}
+
+		/**
+		 * bp_activity_truncate_entry() includes the 'Read More' link, which is why
+		 * we're using this instead of bp_create_excerpt().
+		 */
+		$content = html_entity_decode( $content );
+		$content = bp_activity_truncate_entry( $content, array(
+			'html' => false,
+			'filter_shortcodes' => true,
+			'strip_tags'        => true,
+			'force_truncate'    => true
+		) );
+
+		/**
+		 * Filter the activity embed excerpt.
+		 *
+		 * @since 2.6.0
+		 *
+		 * @var string $content Embed Excerpt.
+		 * @var string $unmodified_content Unmodified activity content.
+		 */
+		return apply_filters( 'bp_activity_get_embed_excerpt', $content, $GLOBALS['activities_template']->activity->content );
+	}
+
+/**
+ * Outputs the first embedded item in the activity oEmbed template.
+ *
+ * @since 2.6.0
+ */
+function bp_activity_embed_response_display_media() {
+	// Bail if oEmbed request explicitly hides media.
+	if ( isset( $_REQUEST['hide_media'] ) && true == wp_validate_boolean( $_REQUEST['hide_media'] ) ) {
+		return;
+	}
+
+	// Find all embeds for the activity item.
+	$embeds = bp_core_extract_media_from_content( $GLOBALS['activities_template']->activity->content, 'embeds' );
+
+	/**
+	 * Should we display media in the oEmbed template?
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param bool $retval Defaults to true.
+	 */
+	$allow_embeds = apply_filters( 'bp_activity_embed_display_media', true );
+
+	// Only embed the first embedded item.
+	if ( $embeds && $allow_embeds ) {
+		// Call BP_Embed if it hasn't already loaded.
+		bp_embed_init();
+
+		// Autoembed first URL.
+		$content = buddypress()->embed->autoembed( $embeds['embeds'][0]['url'] );
+
+		// Wrap content around a custom DIV.
+		echo '<div class="bp-activity-embed-display-media">' . $content . '</div>';
+
+		// Add fluidvids.js for responsive IFRAMEs / OBJECTs.
+		if ( false !== strpos( $content, '<iframe' ) || false !== strpos( $content, '<object' ) ) {
+	?>
+
+<script>
+/*! fluidvids.js v2.4.1 | (c) 2014 @toddmotto | License: MIT | https://github.com/toddmotto/fluidvids */
+!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t:e.fluidvids=t()}(this,function(){"use strict";function e(e){return new RegExp("^(https?:)?//(?:"+d.players.join("|")+").*$","i").test(e)}function t(e,t){return parseInt(e,10)/parseInt(t,10)*100+"%"}function i(i){if((e(i.src)||e(i.data))&&!i.getAttribute("data-fluidvids")){var n=document.createElement("div");i.parentNode.insertBefore(n,i),i.className+=(i.className?" ":"")+"fluidvids-item",i.setAttribute("data-fluidvids","loaded"),n.className+="fluidvids",n.style.paddingTop=t(i.height,i.width),n.appendChild(i)}}function n(){var e=document.createElement("div");e.innerHTML="<p>x</p><style>"+o+"</style>",r.appendChild(e.childNodes[1])}var d={selector:["iframe","object"],players:["www.youtube.com","player.vimeo.com"]},o=[".fluidvids {","width: 100%; max-width: 100%; position: relative;","}",".fluidvids-item {","position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;","}"].join(""),r=document.head||document.getElementsByTagName("head")[0];return d.render=function(){for(var e=document.querySelectorAll(d.selector.join()),t=e.length;t--;)i(e[t])},d.init=function(e){for(var t in e)d[t]=e[t];d.render(),n()},d});
+
+// init
+fluidvids.init({
+	selector: ['iframe', 'object'],
+	players: ['.'] // remove default youtube / vimeo restriction.
+});
+</script>
+
+	<?php
+		}
+	}
+}
+add_action( 'bp_activity_embed_after_content', 'bp_activity_embed_response_display_media' );
Index: src/bp-activity/bp-activity-filters.php
===================================================================
--- src/bp-activity/bp-activity-filters.php
+++ src/bp-activity/bp-activity-filters.php
@@ -395,19 +395,12 @@
  * This method can only be used inside the Activity loop.
  *
  * @since 1.5.0
- *
- * @uses bp_is_single_activity()
- * @uses apply_filters() To call the 'bp_activity_excerpt_append_text' hook.
- * @uses apply_filters() To call the 'bp_activity_excerpt_length' hook.
- * @uses bp_create_excerpt()
- * @uses bp_get_activity_id()
- * @uses bp_get_activity_thread_permalink()
- * @uses apply_filters() To call the 'bp_activity_truncate_entry' hook.
+ * @since 2.6.0 Added $args parameter.
  *
  * @param string $text The original activity entry text.
  * @return string $excerpt The truncated text.
  */
-function bp_activity_truncate_entry( $text ) {
+function bp_activity_truncate_entry( $text, $args = array() ) {
 	global $activities_template;
 
 	/**
@@ -423,7 +416,7 @@
 	);
 
 	// The full text of the activity update should always show on the single activity screen.
-	if ( ! $maybe_truncate_text || bp_is_single_activity() ) {
+	if ( empty( $args['force_truncate'] ) && ( ! $maybe_truncate_text || bp_is_single_activity() ) ) {
 		return $text;
 	}
 
@@ -445,15 +438,17 @@
 	 */
 	$excerpt_length = apply_filters( 'bp_activity_excerpt_length', 358 );
 
+	$args = wp_parse_args( $args, array( 'ending' => __( '&hellip;', 'buddypress' ) ) );
+
 	// Run the text through the excerpt function. If it's too short, the original text will be returned.
-	$excerpt        = bp_create_excerpt( $text, $excerpt_length, array( 'ending' => __( '&hellip;', 'buddypress' ) ) );
+	$excerpt        = bp_create_excerpt( $text, $excerpt_length, $args );
 
 	/*
 	 * If the text returned by bp_create_excerpt() is different from the original text (ie it's
 	 * been truncated), add the "Read More" link. Note that bp_create_excerpt() is stripping
 	 * shortcodes, so we have strip them from the $text before the comparison.
 	 */
-	if ( $excerpt != strip_shortcodes( $text ) ) {
+	if ( strlen( $excerpt ) > strlen( strip_shortcodes( $text ) ) ) {
 		$id = !empty( $activities_template->activity->current_comment->id ) ? 'acomment-read-more-' . $activities_template->activity->current_comment->id : 'activity-read-more-' . bp_get_activity_id();
 
 		$excerpt = sprintf( '%1$s<span class="activity-read-more" id="%2$s"><a href="%3$s" rel="nofollow">%4$s</a></span>', $excerpt, $id, bp_get_activity_thread_permalink(), $append_text );
Index: src/bp-activity/bp-activity-functions.php
===================================================================
--- src/bp-activity/bp-activity-functions.php
+++ src/bp-activity/bp-activity-functions.php
@@ -3337,8 +3337,12 @@
 	}
 
 	// Generate a text excerpt for this activity item (and remove any oEmbeds URLs).
-	$summary = strip_shortcodes( html_entity_decode( strip_tags( $content ) ) );
-	$summary = bp_create_excerpt( preg_replace( '#^\s*(https?://[^\s"]+)\s*$#im', '', $summary ) );
+	$summary = bp_create_excerpt( html_entity_decode( $content ), 225, array(
+		'html' => false,
+		'filter_shortcodes' => true,
+		'strip_tags'        => true,
+		'remove_links'      => true
+	) );
 
 	if ( $use_media_type === 'embeds' ) {
 		$summary .= PHP_EOL . PHP_EOL . $extracted_media['url'];
Index: src/bp-activity/classes/class-bp-activity-component.php
===================================================================
--- src/bp-activity/classes/class-bp-activity-component.php
+++ src/bp-activity/classes/class-bp-activity-component.php
@@ -32,6 +32,7 @@
 			array(
 				'adminbar_myaccount_order' => 10,
 				'search_query_arg' => 'activity_search',
+				'features' => array( 'embeds' )
 			)
 		);
 	}
@@ -72,6 +73,11 @@
 			$includes[] = 'akismet';
 		}
 
+		// Embeds - only applicable for WP 4.5+
+		if ( bp_get_major_wp_version() >= 4.5 && bp_is_active( $this->id, 'embeds' ) ) {
+			$includes[] = 'embeds';
+		}
+
 		if ( is_admin() ) {
 			$includes[] = 'admin';
 		}
Index: src/bp-activity/classes/class-bp-activity-oembed-component.php
new file mode 100644
===================================================================
--- /dev/null
+++ src/bp-activity/classes/class-bp-activity-oembed-component.php
@@ -0,0 +1,332 @@
+<?php
+/**
+ * BuddyPress Activity Classes.
+ *
+ * @package BuddyPress
+ * @subpackage Embeds
+ */
+
+// Exit if accessed directly.
+defined( 'ABSPATH' ) || exit;
+
+require_once( buddypress()->plugin_dir . '/bp-core/classes/class-bp-oembed-component.php' );
+
+/**
+ * oEmbed handler to respond and render single activity items.
+ *
+ * @since 2.6.0
+ */
+class BP_Activity_oEmbed_Component extends BP_oEmbed_Component {
+	/**
+	 * Custom oEmbed slug endpoint.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @var string
+	 */
+	public $slug_endpoint = 'activity';
+
+	/**
+	 * Custom hooks.
+	 *
+	 * @since 2.6.0
+	 */
+	protected function custom_hooks() {
+		add_action( 'embed_content_meta',     array( $this, 'embed_comments_button' ), 5 );
+
+		add_filter( 'bp_activity_embed_html', array( $this, 'modify_iframe' ) );
+	}
+
+	/**
+	 * Add custom endpoint arguments.
+	 *
+	 * Currently, includes 'hide_media'.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @return array
+	 */
+	protected function set_route_args() {
+		return array(
+			'hide_media' => array(
+				'default' => false,
+				'sanitize_callback' => 'wp_validate_boolean'
+			)
+		);
+	}
+
+	/**
+	 * Output our custom embed template part.
+	 *
+	 * @since 2.6.0
+	 */
+	protected function content() {
+		bp_get_asset_template_part( 'embeds/activity' );
+	}
+
+	/**
+	 * Check if we're on our single activity page.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @return bool
+	 */
+	protected function is_page() {
+		return bp_is_single_activity();
+	}
+
+	/**
+	 * Validates the URL to determine if the activity item is valid.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  string   $url The URL to check.
+	 * @return int|bool Activity ID on success; boolean false on failure.
+	 */
+	protected function validate_url_to_item_id( $url ) {
+		if ( bp_core_enable_root_profiles() ) {
+			$domain = bp_get_root_domain();
+		} else {
+			$domain = bp_get_members_directory_permalink();
+		}
+
+		// Check the URL to see if this is a single activity URL.
+		if ( 0 !== strpos( $url, $domain ) ) {
+			return false;
+		}
+
+		// Check for activity slug.
+		if ( false === strpos( $url, '/' . bp_get_activity_slug() . '/' ) ) {
+			return false;
+		}
+
+		// Do more checks.
+		$url = trim( untrailingslashit( $url ) );
+
+		// Grab the activity ID.
+		$activity_id = (int) substr(
+			$url,
+			strrpos( $url, '/' ) + 1
+		);
+
+		if ( ! empty( $activity_id ) ) {
+			// Check if activity item still exists.
+			$activity = new BP_Activity_Activity( $activity_id );
+
+			// Okay, we're good to go!
+			if ( ! empty( $activity->component ) && 0 === (int) $activity->is_spam ) {
+				return $activity_id;
+			}
+		}
+
+		return false;
+	}
+
+	/**
+	 * Sets the oEmbed response data for our activity item.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  int $item_id The activity ID.
+	 * @return array
+	 */
+	protected function set_oembed_response_data( $item_id ) {
+		$activity = new BP_Activity_Activity( $item_id );
+
+		return array(
+			'user_id'    => $activity->user_id,
+			'content'    => $activity->content,
+			'title'      => __( 'Activity', 'buddypress' ),
+			'author_url' => bp_core_get_user_domain( $activity->user_id )
+		);
+	}
+
+	/**
+	 * Sets a custom <blockquote> for our oEmbed fallback HTML.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  int $item_id The activity ID.
+	 * @return string
+	 */
+	protected function set_fallback_html( $item_id ) {
+		$activity    = new BP_Activity_Activity( $item_id );
+		$mentionname = bp_activity_do_mentions() ? ' (@' . bp_activity_get_user_mentionname( $activity->user_id ) . ')' : '';
+		$date        = date_i18n( get_option( 'date_format' ), strtotime( $activity->date_recorded ) );
+
+		// Make sure we can use some activity functions that depend on the loop.
+		$GLOBALS['activities_template'] = new stdClass;
+		$GLOBALS['activities_template']->activity = $activity;
+
+		// 'wp-embedded-content' CSS class is necessary due to how the embed JS works.
+		$blockquote = sprintf( '<blockquote class="wp-embedded-content bp-activity-item">%1$s%2$s %3$s</blockquote>',
+			'<p>' . bp_activity_get_embed_excerpt( $activity->content ) . '</p>',
+			'- ' . bp_core_get_user_displayname( $activity->user_id ) . $mentionname,
+			'<a href="' . esc_url( bp_activity_get_permalink( $item_id ) ) . '">' . $date . '</a>'
+		);
+
+		// Clean up.
+		unset( $GLOBALS['activities_template'] );
+
+		/**
+		 * Filters the fallback HTML used when embedding a BP activity item.
+		 *
+		 * @since 2.6.0
+		 *
+		 * @param string               $blockquote Current fallback HTML
+		 * @param BP_Activity_Activity $activity   Activity object
+		 */
+		return apply_filters( 'bp_activity_embed_fallback_html', $blockquote, $activity );
+	}
+
+	/**
+	 * Sets a custom <iframe> title for our oEmbed item.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  int $item_id The activity ID
+	 * @return string
+	 */
+	protected function set_iframe_title( $item_id ) {
+		return __( 'Embedded Activity Item', 'buddypress' );
+	}
+
+	/**
+	 * Modify various IFRAME-related items if embeds are allowed.
+	 *
+	 * IFRAME attributes added:
+	 *  - sandbox="allow-same-origin" - Only added for Twitter and Soundcloud
+	 *    embeds to allow them to work.
+	 *  - allowfullscreen="true" - Allows users to view embed content fullscreen.
+	 *
+	 * JS modified:
+	 *  - remove IFRAME height restriction of 1000px. Fixes long embed items being
+	 *    truncated.
+	 *  - delay IFRAME onload script by 550ms. Fixes resize issues with Tumblr embeds.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  string $retval Current embed HTML.
+	 * @return string
+	 */
+	public function modify_iframe( $retval ) {
+		// Bail if oEmbed request explicitly hides media.
+		if ( isset( $_REQUEST['hide_media'] ) && true == wp_validate_boolean( $_REQUEST['hide_media'] ) ) {
+			return $retval;
+		}
+
+		// Check filter-configured value.
+		if ( false == apply_filters( 'bp_activity_embed_display_media', true ) ) {
+			return $retval;
+		}
+
+		// Add 'allow-same-origin' sandbox attribute to IFRAME.
+		// This is only applicable for Twitter and Soundcloud embeds.
+		if ( false === strpos( $retval, 'allow-same-origin' ) ) {
+			// Grab activity meta for this item.
+			$meta = bp_activity_get_meta( $this->get_item_id() );
+
+			$checked = false;
+			foreach( $meta as $key => $val ) {
+				if ( $checked ) {
+					break;
+				}
+
+				// Not an oEmbed meta item.
+				if ( false === strpos( $key, '_oembed' ) ) {
+					continue;
+				}
+
+				$checked = true;
+
+				// See if the first embed is a Soundcloud or Twitter item.
+				if ( false === strpos( $val[0], 'soundcloud.com' ) && false === strpos( $val[0], 'twitter.com' ) ) {
+					continue;
+				}
+
+				// Add the 'allow-same-origin' attribute.
+				$retval = str_replace( 'sandbox="', 'sandbox="allow-same-origin ', $retval );
+			}
+		}
+
+		// Add 'allowfullscreen' attribute to IFRAME.
+		if ( false === strpos( $retval, 'allowfullscreen=' ) ) {
+			$retval = str_replace( '<iframe', '<iframe allowfullscreen="true"', $retval );
+		}
+
+		// See /wp-includes/js/wp-embed.js.
+		if ( SCRIPT_DEBUG ) {
+			// Removes WP's hardcoded IFRAME height restriction.
+			$retval = str_replace( 'height = 1000;', 'height = height;', $retval );
+
+			// Delay IFRAME postMessage script so Tumblr embeds are not truncated.
+			$retval = str_replace(
+				"window.addEventListener( 'message', window.wp.receiveEmbedMessage, false );",
+				"window.addEventListener( 'message', function(e) {
+					if ( e.source.frameElement.contentDocument.querySelector('iframe.tumblr-embed') ) {
+						setTimeout( function() {
+							window.wp.receiveEmbedMessage(e);
+						}, 550 );
+					} else {
+						window.wp.receiveEmbedMessage(e);
+					}
+				}, false );",
+				$retval
+			);
+
+		// This is for the WP build minified version.
+		} else {
+			$retval = str_replace( 'g=1e3', 'g=g', $retval );
+			$retval = str_replace(
+				'a.addEventListener("message",a.wp.receiveEmbedMessage,!1)',
+				'a.addEventListener("message",function(e){if(e.source.frameElement.contentDocument.querySelector("iframe.tumblr-embed")){setTimeout(function(){a.wp.receiveEmbedMessage(e);},550);}else{a.wp.receiveEmbedMessage(e);}},!1)',
+				$retval
+			);
+		}
+
+		return $retval;
+	}
+
+	/**
+	 * Prints the markup for the activity embed comments button.
+	 *
+	 * Basically a copy of {@link print_embed_comments_button()}, but modified for
+	 * the BP activity component.
+	 *
+	 * @since 2.6.0
+	 */
+	public function embed_comments_button() {
+		if ( ! bp_is_single_activity() ) {
+			return;
+		}
+
+		// Make sure our custom permalink shows up in the 'WordPress Embed' block.
+		add_filter( 'the_permalink', array( $this, 'filter_embed_url' ) );
+
+		// Only show comment bubble if we have some activity comments.
+		$count = bp_activity_get_comment_count();
+		if ( empty( $count ) ) {
+			return;
+		}
+	?>
+
+		<div class="wp-embed-comments">
+			<a href="<?php bp_activity_thread_permalink(); ?>">
+				<span class="dashicons dashicons-admin-comments"></span>
+				<?php
+				printf(
+					_n(
+						'%s <span class="screen-reader-text">Comment</span>',
+						'%s <span class="screen-reader-text">Comments</span>',
+						$count,
+						'buddypress'
+					),
+					number_format_i18n( $count )
+				);
+				?>
+			</a>
+		</div>
+
+	<?php
+	}
+}
Index: src/bp-core/bp-core-actions.php
===================================================================
--- src/bp-core/bp-core-actions.php
+++ src/bp-core/bp-core-actions.php
@@ -40,6 +40,7 @@
 add_action( 'setup_theme',             'bp_setup_theme',            10    );
 add_action( 'after_setup_theme',       'bp_after_setup_theme',      100   ); // After WP themes.
 add_action( 'wp_enqueue_scripts',      'bp_enqueue_scripts',        10    );
+add_action( 'enqueue_embed_scripts',   'bp_enqueue_embed_scripts',  10    );
 add_action( 'admin_bar_menu',          'bp_setup_admin_bar',        20    ); // After WP core.
 add_action( 'template_redirect',       'bp_template_redirect',      10    );
 add_action( 'widgets_init',            'bp_widgets_init',           10    );
Index: src/bp-core/bp-core-dependency.php
===================================================================
--- src/bp-core/bp-core-dependency.php
+++ src/bp-core/bp-core-dependency.php
@@ -477,6 +477,24 @@
 }
 
 /**
+ * Fires the 'bp_enqueue_embed_scripts' action in the <head> for BP oEmbeds.
+ *
+ * @since 2.6.0
+ */
+function bp_enqueue_embed_scripts() {
+	if ( ! is_buddypress() ) {
+		return;
+	}
+
+	/**
+	 * Enqueue CSS and JS files for BuddyPress embeds.
+	 *
+	 * @since 2.6.0
+	 */
+	do_action ( 'bp_enqueue_embed_scripts' );
+}
+
+/**
  * Fire the 'bp_add_rewrite_tag' action, where BP adds its custom rewrite tags.
  *
  * @since 1.8.0
Index: src/bp-core/bp-core-functions.php
===================================================================
--- src/bp-core/bp-core-functions.php
+++ src/bp-core/bp-core-functions.php
@@ -1666,6 +1666,38 @@
 	return apply_filters( 'bp_use_embed_in_private_messages', !defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) || !BP_EMBED_DISABLE_PRIVATE_MESSAGES );
 }
 
+/**
+ * Extracts media metadata from a given content.
+ *
+ * @since 2.6.0
+ *
+ * @param  string     $content The content to check.
+ * @param  string|int $type    The type to check. Can also use a bitmask. See the class constants in the
+ *                             BP_Media_Extractor class for more info.
+ * @return array|bool          If media exists, will return array of media metadata. Else, boolean false.
+ */
+function bp_core_extract_media_from_content( $content = '', $type = 'all' ) {
+	if ( is_string( $type ) ) {
+		$class = new ReflectionClass( 'BP_Media_Extractor' );
+		$bitmask = $class->getConstant( strtoupper( $type ) );
+	} else {
+		$bitmask = (int) $type;
+	}
+
+	// Type isn't valid, so bail.
+	if ( empty( $bitmask ) ) {
+		return false;
+	}
+
+	$x = new BP_Media_Extractor;
+	$media = $x->extract( $content, $bitmask );
+
+	unset( $media['has'] );
+	$retval = array_filter( $media );
+
+	return ! empty( $retval ) ? $retval : false;
+}
+
 /** Admin *********************************************************************/
 
 /**
Index: src/bp-core/bp-core-template-loader.php
===================================================================
--- src/bp-core/bp-core-template-loader.php
+++ src/bp-core/bp-core-template-loader.php
@@ -66,6 +66,20 @@
 }
 
 /**
+ * Get an asset template part.
+ *
+ * Basically the same as {@link bp_get_template_part()}, but with 'assets/'
+ * prepended to the slug.
+ *
+ * @since 2.6.0
+ *
+ * @see bp_get_template_part() for full documentation.
+ */
+function bp_get_asset_template_part( $slug, $name = null ) {
+	return bp_get_template_part( "assets/{$slug}", $name );
+}
+
+/**
  * Retrieve the name of the highest priority template file that exists.
  *
  * Searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which
Index: src/bp-core/bp-core-template.php
===================================================================
--- src/bp-core/bp-core-template.php
+++ src/bp-core/bp-core-template.php
@@ -769,6 +769,8 @@
  * This function is borrowed from CakePHP v2.0, under the MIT license. See
  * http://book.cakephp.org/view/1469/Text#truncate-1625
  *
+ * @since 2.6.0 Added 'strip_tags' and 'remove_links' as $options args.
+ *
  * ### Options:
  *
  * - `ending` Will be used as Ending and appended to the trimmed string.
@@ -791,6 +793,10 @@
  *                                     excerpt length. Default: true.
  *     @type bool   $filter_shortcodes If true, shortcodes will be stripped.
  *                                     Default: true.
+ *     @type bool   $strip_tags        If true, HTML tags will be stripped. Default: false.
+ *                                     Only applicable if $html is set to false.
+ *     @type bool   $remove_links      If true, URLs will be stripped. Default: false.
+ *                                     Only applicable if $html is set to false.
  * }
  * @return string Trimmed string.
  */
@@ -803,7 +809,9 @@
 		'ending'            => __( ' [&hellip;]', 'buddypress' ),
 		'exact'             => false,
 		'html'              => true,
-		'filter_shortcodes' => $filter_shortcodes_default
+		'filter_shortcodes' => $filter_shortcodes_default,
+		'strip_tags'        => false,
+		'remove_links'      => false,
 	), 'create_excerpt' );
 
 	// Save the original text, to be passed along to the filter.
@@ -889,8 +897,28 @@
 			}
 		}
 	} else {
+		// Strip HTML tags if necessary.
+		if ( ! empty( $r['strip_tags'] ) ) {
+			$text = strip_tags( $text );
+		}
+
+		// Remove links if necessary.
+		if ( ! empty( $r['remove_links'] ) ) {
+			$text = preg_replace( '#^\s*(https?://[^\s"]+)\s*$#im', '', $text );
+		}
+
 		if ( mb_strlen( $text ) <= $length ) {
-			return $text;
+			/**
+			 * Filters the final generated excerpt.
+			 *
+			 * @since 1.1.0
+			 *
+			 * @param string $truncate      Generated excerpt.
+			 * @param string $original_text Original text provided.
+			 * @param int    $length        Length of returned string, including ellipsis.
+			 * @param array  $options       Array of HTML attributes and options.
+			 */
+			return apply_filters( 'bp_create_excerpt', $text, $original_text, $length, $options );
 		} else {
 			$truncate = mb_substr( $text, 0, $length - mb_strlen( $ending ) );
 		}
Index: src/bp-core/bp-core-theme-compatibility.php
===================================================================
--- src/bp-core/bp-core-theme-compatibility.php
+++ src/bp-core/bp-core-theme-compatibility.php
@@ -547,6 +547,55 @@
 }
 
 /**
+ * Create a dummy WP_Post object.
+ *
+ * @since 2.6.0
+ *
+ * @param  array $args Array of optional arguments. Arguments parallel the properties
+ *                    of {@link WP_Post}; see that class for more details.
+ * @return WP_Post
+ */
+function bp_theme_compat_create_dummy_post( $args = array() ) {
+	$args = wp_parse_args( $args, array(
+		'ID'                    => -9999,
+		'post_status'           => 'public',
+		'post_author'           => 0,
+		'post_parent'           => 0,
+		'post_type'             => 'page',
+		'post_date'             => 0,
+		'post_date_gmt'         => 0,
+		'post_modified'         => 0,
+		'post_modified_gmt'     => 0,
+		'post_content'          => '',
+		'post_title'            => '',
+		'post_excerpt'          => '',
+		'post_content_filtered' => '',
+		'post_mime_type'        => '',
+		'post_password'         => '',
+		'post_name'             => '',
+		'guid'                  => '',
+		'menu_order'            => 0,
+		'pinged'                => '',
+		'to_ping'               => '',
+		'ping_status'           => '',
+		'comment_status'        => 'closed',
+		'comment_count'         => 0,
+		'filter'                => 'raw',
+
+		'is_404'                => false,
+		'is_page'               => false,
+		'is_single'             => false,
+		'is_archive'            => false,
+		'is_tax'                => false,
+	) );
+
+	// Create the dummy post.
+	$post = new WP_Post( (object) $args );
+
+	return $post;
+}
+
+/**
  * Populate various WordPress globals with dummy data to prevent errors.
  *
  * This dummy data is necessary because theme compatibility essentially fakes
@@ -567,7 +616,7 @@
 
 	// Switch defaults if post is set.
 	if ( isset( $wp_query->post ) ) {
-		$dummy = wp_parse_args( $args, array(
+		$args = wp_parse_args( $args, array(
 			'ID'                    => $wp_query->post->ID,
 			'post_status'           => $wp_query->post->post_status,
 			'post_author'           => $wp_query->post->post_author,
@@ -592,55 +641,16 @@
 			'comment_status'        => $wp_query->post->comment_status,
 			'comment_count'         => $wp_query->post->comment_count,
 			'filter'                => $wp_query->post->filter,
-
-			'is_404'                => false,
-			'is_page'               => false,
-			'is_single'             => false,
-			'is_archive'            => false,
-			'is_tax'                => false,
-		) );
-	} else {
-		$dummy = wp_parse_args( $args, array(
-			'ID'                    => -9999,
-			'post_status'           => 'public',
-			'post_author'           => 0,
-			'post_parent'           => 0,
-			'post_type'             => 'page',
-			'post_date'             => 0,
-			'post_date_gmt'         => 0,
-			'post_modified'         => 0,
-			'post_modified_gmt'     => 0,
-			'post_content'          => '',
-			'post_title'            => '',
-			'post_excerpt'          => '',
-			'post_content_filtered' => '',
-			'post_mime_type'        => '',
-			'post_password'         => '',
-			'post_name'             => '',
-			'guid'                  => '',
-			'menu_order'            => 0,
-			'pinged'                => '',
-			'to_ping'               => '',
-			'ping_status'           => '',
-			'comment_status'        => 'closed',
-			'comment_count'         => 0,
-			'filter'                => 'raw',
-
-			'is_404'                => false,
-			'is_page'               => false,
-			'is_single'             => false,
-			'is_archive'            => false,
-			'is_tax'                => false,
 		) );
 	}
 
 	// Bail if dummy post is empty.
-	if ( empty( $dummy ) ) {
+	if ( empty( $args ) ) {
 		return;
 	}
 
 	// Set the $post global.
-	$post = new WP_Post( (object) $dummy );
+	$post = bp_theme_compat_create_dummy_post( $args );
 
 	// Copy the new post global into the main $wp_query.
 	$wp_query->post       = $post;
@@ -648,14 +658,11 @@
 
 	// Prevent comments form from appearing.
 	$wp_query->post_count = 1;
-	$wp_query->is_404     = $dummy['is_404'];
-	$wp_query->is_page    = $dummy['is_page'];
-	$wp_query->is_single  = $dummy['is_single'];
-	$wp_query->is_archive = $dummy['is_archive'];
-	$wp_query->is_tax     = $dummy['is_tax'];
-
-	// Clean up the dummy post.
-	unset( $dummy );
+	$wp_query->is_404     = $post->is_404;
+	$wp_query->is_page    = $post->is_page;
+	$wp_query->is_single  = $post->is_single;
+	$wp_query->is_archive = $post->is_archive;
+	$wp_query->is_tax     = $post->is_tax;
 
 	/**
 	 * Force the header back to 200 status if not a deliberate 404
@@ -700,6 +707,10 @@
  * @return string $template Template name.
  */
 function bp_template_include_theme_compat( $template = '' ) {
+	// If embed template, bail.
+	if ( is_embed() ) {
+		return $template;
+	}
 
 	// If the current theme doesn't need theme compat, bail at this point.
 	if ( ! bp_use_theme_compat_with_current_theme() ) {
Index: src/bp-core/classes/class-bp-admin.php
===================================================================
--- src/bp-core/classes/class-bp-admin.php
+++ src/bp-core/classes/class-bp-admin.php
@@ -836,6 +836,7 @@
 				<a href="https://bbpress.org">bbPress</a>,
 				<a href="https://github.com/ichord/Caret.js">Caret.js</a>,
 				<a href="http://tedgoas.github.io/Cerberus/">Cerberus</a>,
+				<a href="https://github.com/toddmotto/fluidvids">fluidvids.js</a>,
 				<a href="https://github.com/carhartl/jquery-cookie">jquery.cookie</a>,
 				<a href="https://www.mediawiki.org/wiki/MediaWiki">MediaWiki</a>,
 				<a href="https://wordpress.org">WordPress</a>.
Index: src/bp-core/classes/class-bp-oembed-component.php
new file mode 100644
===================================================================
--- /dev/null
+++ src/bp-core/classes/class-bp-oembed-component.php
@@ -0,0 +1,534 @@
+<?php
+/**
+ * Core component classes.
+ *
+ * @package BuddyPress
+ * @subpackage Core
+ */
+
+// Exit if accessed directly.
+defined( 'ABSPATH' ) || exit;
+
+/**
+ * API for responding and returning a custom oEmbed request.
+ *
+ * @since 2.6.0
+ */
+abstract class BP_oEmbed_Component {
+
+	/** START PROPERTIES ****************************************************/
+
+	/**
+	 * (required) The slug endpoint.
+	 *
+	 * Should be your component id.
+	 *
+	 * @var string
+	 */
+	public $slug_endpoint = '';
+
+	/**
+	 * (optional) Embed template hierarchy.
+	 *
+	 * Define the template hierarchy for your oEmbed rendering.
+	 *
+	 * @var array
+	 */
+	protected $template_hierarchy = array();
+
+	/** END PROPERTIES ******************************************************/
+
+	/**
+	 * Constructor.
+	 */
+	final public function __construct() {
+		$this->setup_properties();
+
+		// Some rudimentary logic checking.
+		if ( empty( $this->slug_endpoint ) ) {
+			$class = get_class( $this );
+			throw new LogicException( $class . ' class must define $slug_endpoint property' );
+		}
+
+		$this->setup_hooks();
+		$this->custom_hooks();
+	}
+
+	/** REQUIRED METHODS ****************************************************/
+
+	/**
+	 * Add content for your oEmbed response here.
+	 *
+	 * @since 2.6.0
+	 */
+	abstract protected function content();
+
+	/**
+	 * Add a check for when you are on the page you want to oEmbed.
+	 *
+	 * You'll want to return a boolean here. eg. bp_is_single_activity().
+	 *
+	 * @since 2.6.0
+	 *
+	 * @return bool
+	 */
+	abstract protected function is_page();
+
+	/**
+	 * Validate the URL to see if it matches your item ID.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @return int Your item ID
+	 */
+	abstract protected function validate_url_to_item_id( $url );
+
+	/**
+	 * Set the oEmbed response data.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  int   $item_id Your item ID to do checks against.
+	 * @return array Should contain 'user_id', 'content', 'title', 'author_url' as array keys.
+	 *               'author_url' is optional; the rest are required.
+	 */
+	abstract protected function set_oembed_response_data( $item_id );
+
+	/**
+	 * Sets the fallback HTML for the oEmbed response.
+	 *
+	 * In a WordPress oEmbed item, the fallback HTML is a <blockquote>.  This is
+	 * usually hidden after the <iframe> is loaded.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  int    $item_id Your item ID to do checks against.
+	 * @return string Fallback HTML you want to output.
+	 */
+	abstract protected function set_fallback_html( $item_id );
+
+	/** OPTIONAL METHODS ****************************************************/
+
+	/**
+	 * If your oEmbed endpoint requires additional arguments, set them here.
+	 *
+	 * @see register_rest_route() View the $args parameter for more info.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @return array
+	 */
+	protected function set_route_args() {
+		return array();
+	}
+
+	/**
+	 * Set the iframe title.
+	 *
+	 * If not set, this will fallback to WP's 'Embedded WordPress Post'.
+	 *
+	 * @param int $item_id The item ID to do checks for.
+	 * @return string
+	 */
+	protected function set_iframe_title( $item_id ) {}
+
+	/**
+	 * Do what you need to do here to initialize any custom hooks.
+	 *
+	 * @since 2.6.0
+	 */
+	protected function custom_hooks() {}
+
+	/**
+	 * Set permalink for oEmbed link discovery.
+	 *
+	 * This method will be called on the page we want to oEmbed.  In most cases,
+	 * you will not need to override this method.  However, if you need to, do
+	 * override in your extended class.
+	 *
+	 * @since 2.6.0
+	 */
+	protected function set_permalink() {
+		$url = bp_get_requested_url();
+
+		// Remove querystring from bp_get_requested_url()
+		if ( false !== strpos( bp_get_requested_url(), '?' ) ) {
+			$url = substr( bp_get_requested_url(), 0, strpos( bp_get_requested_url(), '?' ) );
+		}
+
+		return $url;
+	}
+
+	/** HELPERS *************************************************************/
+
+	/**
+	 * Get the item ID when filtering the oEmbed HTML.
+	 *
+	 * Should only be used during the 'embed_html' hook.
+	 *
+	 * @since 2.6.0
+	 */
+	protected function get_item_id() {
+		return $this->is_page() ? $this->validate_url_to_item_id( $this->set_permalink() ) : buddypress()->{$this->slug_endpoint}->embedid_in_progress;
+	}
+
+	/** SET UP **************************************************************/
+
+	/**
+	 * Set up properties.
+	 *
+	 * @since 2.6.0
+	 */
+	protected function setup_properties() {
+		$this->slug_endpoint = sanitize_title( $this->slug_endpoint );
+	}
+
+	/**
+	 * Hooks! We do the dirty work here, so you don't have to! :)
+	 *
+	 * More hooks are available in the setup_template_parts() method.
+	 *
+	 * @since 2.6.0
+	 */
+	protected function setup_hooks() {
+		add_action( 'rest_api_init',    array( $this, 'register_route' ) );
+		add_action( 'bp_embed_content', array( $this, 'inject_content' ) );
+
+		add_filter( 'embed_template', array( $this, 'setup_template_parts' ) );
+		add_filter( 'post_embed_url', array( $this, 'filter_embed_url' ) );
+		add_filter( 'embed_html',     array( $this, 'filter_embed_html' ) );
+		add_filter( 'oembed_discovery_links', array( $this, 'add_oembed_discovery_links' ) );
+	}
+
+	/** HOOKS ***************************************************************/
+
+	/**
+	 * Register the oEmbed REST API route.
+	 *
+	 * @since 2.6.0
+	 */
+	public function register_route() {
+		/** This filter is documented in wp-includes/class-wp-oembed-controller.php */
+		$maxwidth = apply_filters( 'oembed_default_width', 600 );
+
+		// Required arguments.
+		$args = array(
+			'url'      => array(
+				'required'          => true,
+				'sanitize_callback' => 'esc_url_raw',
+			),
+			'format'   => array(
+				'default'           => 'json',
+				'sanitize_callback' => 'wp_oembed_ensure_format',
+			),
+			'maxwidth' => array(
+				'default'           => $maxwidth,
+				'sanitize_callback' => 'absint',
+			)
+		);
+
+		// Merge custom arguments here.
+		$args = $args + (array) $this->set_route_args();
+
+		register_rest_route( 'oembed/1.0', "/embed/{$this->slug_endpoint}", array(
+			array(
+				'methods'  => WP_REST_Server::READABLE,
+				'callback' => array( $this, 'get_item' ),
+				'args'     => $args
+			),
+		) );
+	}
+
+	/**
+	 * Set up custom embed template parts for BuddyPress use.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  string $template File path to current embed template.
+	 * @return string
+	 */
+	public function setup_template_parts( $template ) {
+		// Determine if we're on our BP page.
+		if ( ! $this->is_page() || is_404() ) {
+			return $template;
+		}
+
+		// Set up some BP-specific embed template overrides.
+		add_action( 'embed_head',              array( $this, 'add_base_element' ), 1 );
+		add_action( 'get_template_part_embed', array( $this, 'content_buffer_start' ), -999, 2 );
+		add_action( 'get_footer',              array( $this, 'content_buffer_end' ), -999 );
+
+		// Return the original WP embed template.
+		return $template;
+	}
+
+	/**
+	 * Add <base> element to embed <head>.
+	 */
+	public function add_base_element() {
+		echo '<base target="_top" />';
+	}
+
+	/**
+	 * Start object buffer.
+	 *
+	 * We're going to override WP's get_template_part( 'embed, 'content' ) call
+	 * and inject our own template for BuddyPress use.
+	 */
+	public function content_buffer_start( $slug, $name ) {
+		if ( 'embed' !== $slug || 'content' !== $name ) {
+			return;
+		}
+
+		// Start the buffer to wipe out get_template_part( 'embed, 'content' ).
+		ob_start();
+	}
+
+	/**
+	 * End object buffer.
+	 *
+	 * We're going to override WP's get_template_part( 'embed, 'content' ) call
+	 * and inject our own template for BuddyPress use.
+	 */
+	public function content_buffer_end( $name ) {
+		if ( 'embed' !== $name || is_404() ) {
+			return;
+		}
+
+		// Wipe out get_template_part( 'embed, 'content' ).
+		ob_end_clean();
+
+		// Start our custom BuddyPress embed template!
+		echo '<div ';
+		post_class( 'wp-embed' );
+		echo '>';
+
+		// Template part for our embed header.
+		bp_get_asset_template_part( 'embeds/header', bp_current_component() );
+
+		/**
+		 * Inject BuddyPress embed content on this hook.
+		 *
+		 * You shouldn't really need to use this if you extend the
+		 * {@link BP_oEmbed_Component} class.
+		 *
+		 * @since 2.6.0
+		 */
+		do_action( 'bp_embed_content' );
+
+		// Template part for our embed footer.
+		bp_get_asset_template_part( 'embeds/footer', bp_current_component() );
+
+		echo '</div>';
+	}
+
+	/**
+	 * Adds oEmbed discovery links on single activity pages.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  string $retval Current discovery links.
+	 * @return string
+	 */
+	public function add_oembed_discovery_links( $retval ) {
+		if ( ! $this->is_page() ) {
+			return $retval;
+		}
+
+		$permalink = $this->set_permalink();
+		if ( empty( $permalink ) ) {
+			return $retval;
+		}
+
+		add_filter( 'rest_url' , array( $this, 'filter_rest_url' ) );
+
+		$retval = '<link rel="alternate" type="application/json+oembed" href="' . esc_url( get_oembed_endpoint_url( $permalink ) ) . '" />' . "\n";
+
+		if ( class_exists( 'SimpleXMLElement' ) ) {
+			$retval .= '<link rel="alternate" type="text/xml+oembed" href="' . esc_url( get_oembed_endpoint_url( $permalink, 'xml' ) ) . '" />' . "\n";
+		}
+
+		remove_filter( 'rest_url' , array( $this, 'filter_rest_url' ) );
+
+		return $retval;
+	}
+
+	/**
+	 * Callback for the API endpoint.
+	 *
+	 * Returns the JSON object for the item.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  WP_REST_Request $request Full data about the request.
+	 * @return WP_Error|array oEmbed response data or WP_Error on failure.
+	 */
+	public function get_item( $request ) {
+		$url = $request['url'];
+
+		$data = false;
+
+		$item_id = (int) $this->validate_url_to_item_id( $url );
+
+		if ( ! empty( $item_id ) ) {
+			$item = $this->set_oembed_response_data( $item_id );
+
+			// Create dummy post to piggyback off of get_oembed_response_data()
+			$post = bp_theme_compat_create_dummy_post( array(
+				'post_author'  => $item['user_id'],
+				'post_title'   => $item['title'],
+				'post_content' => $item['content'],
+
+				// This passes the get_oembed_response_data() check.
+				'post_status'  => 'publish'
+			) );
+
+			// Add markers to tell that we're embedding a single activity.
+			// This is needed for various oEmbed response data filtering.
+			if ( empty( buddypress()->{$this->slug_endpoint} ) ) {
+				buddypress()->{$this->slug_endpoint} = new stdClass;
+			}
+			buddypress()->{$this->slug_endpoint}->embedurl_in_progress = $url;
+			buddypress()->{$this->slug_endpoint}->embedid_in_progress  = $item_id;
+
+			// Save custom route args as well.
+			$custom_args = array_keys( (array) $this->set_route_args() );
+			if ( ! empty( $custom_args ) ) {
+				buddypress()->{$this->slug_endpoint}->embedargs_in_progress = array();
+
+				foreach( $custom_args as $arg ) {
+					if ( isset( $request[ $arg ] ) ) {
+						buddypress()->{$this->slug_endpoint}->embedargs_in_progress[ $arg ] = $request[ $arg ];
+					}
+				}
+			}
+
+			// Use WP's oEmbed response data function.
+			$data = get_oembed_response_data( $post, $request['maxwidth'] );
+
+			// Set custom 'author_url' if we have one.
+			if ( ! empty( $item['author_url'] ) ) {
+				$data['author_url'] = $item['author_url'];
+			}
+		}
+
+		if ( ! $data ) {
+			return new WP_Error( 'oembed_invalid_url', get_status_header_desc( 404 ), array( 'status' => 404 ) );
+		}
+
+		return $data;
+	}
+
+	/**
+	 * Pass our BuddyPress activity permalink for embedding.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @see bp_activity_embed_rest_route_callback()
+	 *
+	 * @param  string $retval Current embed URL
+	 * @return string
+	 */
+	public function filter_embed_url( $retval ) {
+		if ( false === isset( buddypress()->{$this->slug_endpoint}->embedurl_in_progress ) && ! $this->is_page() ) {
+			return $retval;
+		}
+
+		$url = $this->is_page() ? $this->set_permalink() : buddypress()->{$this->slug_endpoint}->embedurl_in_progress;
+		$url = trailingslashit( $url );
+
+		// This is for the 'WordPress Embed' block
+		// @see bp_activity_embed_comments_button()
+		if ( 'the_permalink' !== current_filter() ) {
+			$url = add_query_arg( 'embed', 'true', trailingslashit( $url ) );
+
+			// Add custom route args to iframe.
+			if ( ! empty( buddypress()->{$this->slug_endpoint}->embedargs_in_progress ) ) {
+				foreach( buddypress()->{$this->slug_endpoint}->embedargs_in_progress as $key => $value ) {
+					$url = add_query_arg( $key, $value, $url );
+				}
+			}
+		}
+
+		return $url;
+	}
+
+	/**
+	 * Filters the embed HTML for our BP oEmbed endpoint.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @param  string $retval Current embed HTML
+	 * @return string
+	 */
+	public function filter_embed_html( $retval ) {
+		if ( false === isset( buddypress()->{$this->slug_endpoint}->embedurl_in_progress ) && ! $this->is_page() ) {
+			return $retval;
+		}
+
+		$url = $this->set_permalink();
+
+		$item_id = $this->is_page() ? $this->validate_url_to_item_id( $url ) : buddypress()->{$this->slug_endpoint}->embedid_in_progress;
+
+		// Change 'Embedded WordPress Post' to custom title.
+		$custom_title = $this->set_iframe_title( $item_id );
+		if ( ! empty( $custom_title ) ) {
+			$title_pos = strpos( $retval, 'title=' ) + 7;
+			$title_end_pos = strpos( $retval, '"', $title_pos );
+
+			$retval = substr_replace( $retval, esc_attr( $custom_title ), $title_pos, $title_end_pos - $title_pos );
+		}
+
+		// Add 'max-width' CSS attribute to IFRAME.
+		// This will make our oEmbeds responsive.
+		if ( false === strpos( $retval, 'style="max-width' ) ) {
+			$retval = str_replace( '<iframe', '<iframe style="max-width:100%"', $retval );
+		}
+
+		// Remove default <blockquote>
+		$retval = substr( $retval, strpos( $retval, '</blockquote>' ) + 13 );
+
+		// Set up new fallback HTML
+		// @todo Maybe use KSES?
+		$fallback_html = $this->set_fallback_html( $item_id );
+
+		/**
+		 * Dynamic filter to return BP oEmbed HTML.
+		 *
+		 * @since 2.6.0
+		 *
+		 * @var string $retval
+		 */
+		return apply_filters( "bp_{$this->slug_endpoint}_embed_html", $fallback_html . $retval );
+	}
+
+	/**
+	 * Append our custom slug endpoint to oEmbed endpoint URL.
+	 *
+	 * Meant to be used as a filter on 'rest_url' before any call to
+	 * {@link get_oembed_endpoint_url()} is used.
+	 *
+	 * @since 2.6.0
+	 *
+	 * @see add_oembed_discovery_links()
+	 *
+	 * @param  string $retval Current oEmbed endpoint URL
+	 * @return string
+	 */
+	function filter_rest_url( $retval = '' ) {
+		return $retval . "/{$this->slug_endpoint}";
+	}
+
+	/**
+	 * Inject activity content into the embed template.
+	 *
+	 * @since 2.6.0
+	 */
+	public function inject_content() {
+		if ( ! $this->is_page() ) {
+			return;
+		}
+
+		$this->content();
+	}
+}
\ No newline at end of file
Index: src/bp-templates/bp-legacy/buddypress/assets/embeds/activity.php
new file mode 100644
===================================================================
--- /dev/null
+++ src/bp-templates/bp-legacy/buddypress/assets/embeds/activity.php
@@ -0,0 +1,14 @@
+
+		<?php if ( bp_has_activities( 'display_comments=threaded&show_hidden=true&include=' . bp_current_action() ) ) : ?>
+
+			<?php while ( bp_activities() ) : bp_the_activity(); ?>
+				<div class="wp-embed-excerpt"><?php bp_activity_embed_excerpt(); ?></div>
+
+				<p class="wp-embed-timestamp"><a href="<?php bp_activity_thread_permalink(); ?>"><?php echo date_i18n( get_option( 'time_format' ) . ' - ' . get_option( 'date_format' ), strtotime( bp_get_activity_date_recorded() ) ); ?></a></p>
+
+				<?php do_action( 'bp_activity_embed_after_content' ); ?>
+
+			<?php endwhile; ?>
+
+		<?php endif; ?>
+
Index: src/bp-templates/bp-legacy/buddypress/assets/embeds/footer.php
new file mode 100644
===================================================================
--- /dev/null
+++ src/bp-templates/bp-legacy/buddypress/assets/embeds/footer.php
@@ -0,0 +1,9 @@
+			<div class="wp-embed-footer">
+				<?php the_embed_site_title() ?>
+
+				<div class="wp-embed-meta">
+					<?php
+					/** This action is documented in wp-includes/theme-compat/embed-content.php */
+					do_action( 'embed_content_meta'); ?>
+				</div>
+			</div>
\ No newline at end of file
Index: src/bp-templates/bp-legacy/buddypress/assets/embeds/header.php
new file mode 100644
===================================================================
--- /dev/null
+++ src/bp-templates/bp-legacy/buddypress/assets/embeds/header.php
@@ -0,0 +1,18 @@
+
+		<div id="wp-embed-header">
+			<div class="wp-embed-avatar">
+				<a href="<?php bp_displayed_user_link(); ?>">
+					<?php bp_displayed_user_avatar( 'type=thumb&width=36&height=36' ); ?>
+				</a>
+			</div>
+
+			<p class="wp-embed-heading">
+				<a href="<?php bp_displayed_user_link(); ?>">
+					<?php bp_displayed_user_fullname(); ?>
+				</a>
+			</p>
+
+			<?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
+				<p class="wp-embed-mentionname">@<?php bp_displayed_user_mentionname(); ?></p>
+			<?php endif; ?>
+		</div>
