Topic-icon Facebook Page Plugin stops working

Active Subscriptions:

None
9 years 8 months ago #59497 by carbendata
Just installed JFBConnect. Our website generates dynamic pages about various businesses. These pages include information from the businesses Facebook page along with a like button for that page on FB. We also integrate the FB Page Plugin that displays their FB feed. We use a custom graph call to get the business info and that portion is still working. However, once we installed JFBConnect, the page feed using the FB Page Plugin along with the Like button have disappeared from the page. How do we get our feed going again without having to set up a "channel" for each of the 5000+ businesses that are a part of our site?

Here is our code for the like button:
echo "<div class=\"fb-like\" data-href=\"www.xxxx.com/place?pID={$pID}\" data-layout=\"button\" data-action=\"like\" data-show-faces=\"false\" data-share=\"true\">

";
Here is the code for the page feed ($fbURL is replaced dynamically by the Facebook page URL of the particular business):
echo "<div class=\"fb-page\" data-href=\"{$fbURL}\" data-tabs=\"timeline\" data-width=\"470\" data-height=\"700\" data-small-header=\"true\" data-adapt-container-width=\"false\" data-hide-cover=\"true\" data-show-facepile=\"false\"></div>";
The topic has been locked.
Active Subscriptions:

None
9 years 8 months ago #59499 by carbendata
I seem to have solved the issue although I am not sure if the fix will break any other features/functions within JFBConnect. To correct my issue & have our hard coded like buttons and page feeds work again, I made the following change to line 86 of /components/com_jfbconnect/libraries/provider/facebook.php :

Original line:
js.src = "//connect.facebook.net/{$locale}/{$script}";

New line:
js.src = "//connect.facebook.net/{$locale}/{$script}#xfbml=1&version=v2.7";
The topic has been locked.
Support Specialist
9 years 8 months ago #59506 by alzander
You shouldn't need to make that change. Instead, in the JFBConnect -> Configuration area, please try enabling the "Always Parse Tags" setting. That should do the same thing as the XFBML parameter you pass above by telling the Facebook Javascript library to search for widgets to render.

I hope that helps, but if you run into any other issues, please let us know.

Thanks,
Alex
The topic has been locked.