javascript - Embed Facebook post on AngularJS -
i have tried several ways config app in order display embed post facebook js sdk
no success.
here config
var app = angular.module("app", ["ngroute", "nganimate","digitalfondue.dftabmenu"]); app.controller("viewctrl", function($scope) { }); app.config(function($routeprovider) { $routeprovider. when("/inicio", { templateurl: "inicio.phtml", controller: "inicioctrl", animate: "slideleft" }). when("/anyotherpage", { templateurl: "anyotherpage.phtml", controller: "anyotherpagectrl", animate: "slideleft" }). otherwise({redirectto: "/inicio"}); } )
and facebook js sdk
<script>(function(d, s, id) { var js, fjs = d.getelementsbytagname(s)[0]; if (d.getelementbyid(id)) return; js = d.createelement(s); js.id = id; js.src = "//connect.facebook.net/es_co/sdk.js#xfbml=1&version=v2.3&appid=627634673965707"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
the embed post
<div class="fb-post" data-href="$posturl" data-width="350"> <div class="fb-xfbml-parse-ignore"><blockquote cite="$posturl"> <p></p> publicado por <a href="https://www.facebook.com/herbalistas">herbalist</a> el <a href="$posturl"></a> </blockquote> </div> </div>
Comments
Post a Comment