{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/25","repository_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp","labels_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/25/comments","events_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/25/events","html_url":"https://github.com/Automattic/facebook-instant-articles-wp/issues/25","id":139041275,"number":25,"title":"Facebook Video/Post embeds not working. ","user":{"login":"rinatkhaziev","id":459254,"avatar_url":"https://avatars.githubusercontent.com/u/459254?v=3","gravatar_id":"","url":"https://api.github.com/users/rinatkhaziev","html_url":"https://github.com/rinatkhaziev","followers_url":"https://api.github.com/users/rinatkhaziev/followers","following_url":"https://api.github.com/users/rinatkhaziev/following{/other_user}","gists_url":"https://api.github.com/users/rinatkhaziev/gists{/gist_id}","starred_url":"https://api.github.com/users/rinatkhaziev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinatkhaziev/subscriptions","organizations_url":"https://api.github.com/users/rinatkhaziev/orgs","repos_url":"https://api.github.com/users/rinatkhaziev/repos","events_url":"https://api.github.com/users/rinatkhaziev/events{/privacy}","received_events_url":"https://api.github.com/users/rinatkhaziev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-07T17:32:19Z","updated_at":"2016-03-07T17:37:19Z","closed_at":null,"body":"Which is ironic :) \r\n\r\nI worked this around with following code -\r\n\r\n```\r\nstatic function wire_fb_embed_handlers() {\r\n\twp_embed_register_handler( 'facebook-ia-post', JETPACK_FACEBOOK_EMBED_REGEX, [ __CLASS__, 'ia_fb_embed_handler' ] , 0 );\r\n\twp_embed_register_handler( 'facebook-ia-video', JETPACK_FACEBOOK_VIDEO_ALTERNATE_EMBED_REGEX, [ __CLASS__, 'ia_fb_embed_handler' ] , 0 );\r\n}\r\n\r\nstatic function ia_fb_embed_handler( $matches, $attr, $url ) {\r\n\t$class = wp_in( '/posts/', $url ) ? 'post' : 'video';\r\n\treturn sprintf( '<div class=\"fb-%s\" data-allowfullscreen=\"true\" data-href=\"%s\" data-width=\"%d\"></div>', esc_attr( $class ), esc_url( $url ), (int) Helper::get_content_width( 'ia' ) );\r\n}\r\n```\r\n\r\n\r\nObviously, this needs to be cleaned up since I have all kinds of helpers which are probably not needed.\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/comments/193363406","html_url":"https://github.com/Automattic/facebook-instant-articles-wp/issues/25#issuecomment-193363406","issue_url":"https://api.github.com/repos/Automattic/facebook-instant-articles-wp/issues/25","id":193363406,"user":{"login":"rinatkhaziev","id":459254,"avatar_url":"https://avatars.githubusercontent.com/u/459254?v=3","gravatar_id":"","url":"https://api.github.com/users/rinatkhaziev","html_url":"https://github.com/rinatkhaziev","followers_url":"https://api.github.com/users/rinatkhaziev/followers","following_url":"https://api.github.com/users/rinatkhaziev/following{/other_user}","gists_url":"https://api.github.com/users/rinatkhaziev/gists{/gist_id}","starred_url":"https://api.github.com/users/rinatkhaziev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinatkhaziev/subscriptions","organizations_url":"https://api.github.com/users/rinatkhaziev/orgs","repos_url":"https://api.github.com/users/rinatkhaziev/repos","events_url":"https://api.github.com/users/rinatkhaziev/events{/privacy}","received_events_url":"https://api.github.com/users/rinatkhaziev/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T17:37:19Z","updated_at":"2016-03-07T17:37:19Z","body":"@philipjohn I just updated the original comment, it covers links like https://www.facebook.com/rinat.khaziev/posts/10208586784288538 and https://www.facebook.com/coslive/videos/10153831160106648/"}}