Specific Facebook page plugin doesn't work on mobile -
i came across strange; facebok page plugin doesn't load on mobile if it's specific facebook page.
my code:
<div id="fb-root"> </div> <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/en_us/sdk.js#xfbml=1&version=v2.4&appid=1591121954498982"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-page" data-adapt-container-width="true" data-height="350" data-hide-cover="false" data-href="https://www.facebook.com/pages/סיפורי-פירות-fruit-story/410067012494711?fref=ts" data-show-facepile="true" data-show-posts="true" data-small-header="false"> </div>
changing line: data-href="https://www.facebook.com/pages/סיפורי-פירות-fruit-story/410067012494711?fref=ts"
to page's url such as: data-href="https://www.facebook.com/cocacolaunitedstates?fref=ts"
...makes plugin load fine. because page url contains hebrew? there relevant page setting?
i set small demo page: http://s-fruit.co.il/facebook-test.html
found cause!
this intentional (though peculiar) behavior of facebook when dealing age-restricted pages , guest users (not logged in, happens on mobile browsers use app).
why not display login prompt? paraphrased info? knows. @ least mystery solved.
an official response can found here: https://developers.facebook.com/bugs/828224027247232/
Comments
Post a Comment