Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1277687

    Hello,

    Where are the Facebook widget files located? For example the default URL “facebook.com/kriesi.at”, the images, etc.

    I tried to look into class-framework-widgets but they are not there

    Thank you

    #1277927

    Hi DeMamp,

    You can actually find it there.
    enfold > framework > php > class-framework-widgets.php (line 232):

    'url' => 'https://www.facebook.com/kriesi.at', 

    Other default values are shown at the bottom of this line of code.

    Best regards,
    Nikko

    #1278067

    Hello Nikko,

    When I right-click on the widget and inspect it (with Chrome) I get many lines of codes such as

    <div class="fb-page fb_iframe_widget" data-width="500" data-href="https://www.facebook.com/kriesi.at" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" data-show-posts="false" fb-xfbml-state="rendered" fb-iframe-plugin-query="adapt_container_width=true&app_id=&container_width=286&hide_cover=false&href=https%3A%2F%2Fwww.facebook.com%2Fkriesi.at&locale=en_US&sdk=joey&show_facepile=true&show_posts=false&small_header=false&width=500"><span style="vertical-align: bottom; width: 286px; height: 130px;"><iframe name="f32586d835ff11c" width="500px" height="1000px" data-testid="fb:page Facebook Social Plugin" title="" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" src="https://www.facebook.com/v2.7/plugins/page.php?adapt_container_width=true&app_id=&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df73b94b039584c%26domain%3Dlocalhost%26origin%3Dhttp%253A%252F%252Flocalhost%252Ff34cc18468b4a24%26relation%3Dparent.parent&container_width=286&hide_cover=false&href=https%3A%2F%2Fwww.facebook.com%2Fkriesi.at&locale=en_US&sdk=joey&show_facepile=true&show_posts=false&small_header=false&width=500" style="border: none; visibility: visible; width: 286px; height: 130px; outline: red dashed 1px;" class=""></iframe></span></div>

    This whole code gives me access to the plugin’s shop button, the header image, the links, etc. This is not located in class-framework-widgets.php…

    #1278256

    Hi DeMamp,

    Yes, that’s because the code will generate only the code that’s needed (some HTML and script) that is defined in https://developers.facebook.com/docs/plugins/page-plugin
    Then when the page is rendered that code will generate an iframe on those extra codes that you see.

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.