• Resolved WebMat

    (@webmatpro)


    Hi,

    can you change the line 139 in “comments-loader.php”

    sdk.js

    to

    sdk/xfbml.customerchat.js

    This is the new js from dev facebook and add compatibily with messenger (otherwise broke)

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Sayan Datta

    (@infosatech)

    Hi @webmatpro

    Could you please tell me how do you want to use Facebook Messenger Chat.? Using a plugin or using some code directly added to your theme or anything else??

    Thanks!

    Thread Starter WebMat

    (@webmatpro)

    directly added in footer.

    Your code will be call in first (before mine), so, broke my well js (from facebook)

    • This reply was modified 5 years, 9 months ago by WebMat.
    Plugin Author Sayan Datta

    (@infosatech)

    Hi, please add these snippets to the end of your functions.php file:

    add_filter( 'ufc_facebook_sdk_reinit_method', '__return_true' );

    Try it and let me know. Thanks!

    Thread Starter WebMat

    (@webmatpro)

    yes sure will working, its sure the sdk.js is light more that xfbml.customerchat.js

    Thanks

    Plugin Author Sayan Datta

    (@infosatech)

    Ok, I will try to implement that in the upcoming version of this plugin. But for now, use this as it is working for you.

    add_filter( 'ufc_facebook_sdk_reinit_method', '__return_true' );

    Thanks!

    Thread Starter WebMat

    (@webmatpro)

    If you want a better compatibily for casual users, add an option for choose what .js will be load or add a conditionnal with javascript ‘selector class exist: fb-customerchat’

    See u ??

    Plugin Author Sayan Datta

    (@infosatech)

    Hi, which type of Comments Loading Method you are currently using?

    Thread Starter WebMat

    (@webmatpro)

    Default.

    Do you will want i try with another mode ?

    Plugin Author Sayan Datta

    (@infosatech)

    Please try On Scroll or On Click mode without editing the plugin file and without the code snippet which I have given to you.

    Thanks!

    Thread Starter WebMat

    (@webmatpro)

    No its not right because with the mode scroll or click, your sdk.js will load after mine.

    So messenger will work but not the comment facebook.

    Plugin Author Sayan Datta

    (@infosatech)

    I know that, but actually want to know the status of Facebook Mesenger Chat Plugin. Ok, I will implement an option set the sdk loading method.

    Thanks!

    Thread Starter WebMat

    (@webmatpro)

    Thanks you,

    great support ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fix sdk.js compatibilty messenger’ is closed to new replies.