Topic-icon Link to Facebook Article not working after upgrade to 6.4.1

Active Subscriptions:

None
Hello

After I upgraded to JFBConnect 6.4.1 the link to the facebook article does not work anymore.
Have a look at www.study-smart.net bottom right.

Regards

Cedric
The topic has been locked.
Support Specialist
Can you explain a bit more about what isn't working? In the sidebar on the right, I see the SCSocialStream module which is showing many posts that all seem to be working. I also see a Like button above that, which is working.

If something isn't working for you on that page, please let us know exactly what feature it is and what isn't working how you expect. Error messages, links or a good description of the problem will really help.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Click on the link which takes to the facebook page. Page is invalid.

Regards

Cedric
The topic has been locked.
Active Subscriptions:

None
Can I get an answer on that. Click on "Link zum Beitrag" on www.study-smart.net bottom right

Regards

Cedric
The topic has been locked.
Support Specialist
8 years 10 months ago #54009 by mel
It's possible that Facebook changed how the links to the page posts work, as I'm also seeing some weird behavior on Facebook itself. For instance, if I look at one of your posts on FB and then try to get the code from "Embed Post" to put it on a webpage, the link in this embedded code also does not work and gives the Page Not Found error if I try to go to it. I am looking into this issue and will let you know what we find.

-Melissa
The topic has been locked.
Support Specialist
8 years 10 months ago #54048 by mel
The links showing on your page look incorrect. For instance, I see www.facebook.com/1504483579813372/posts/1504483579813372 when it should be www.facebook.com/1504483579813372/posts/1589883911273338 - if you notice, in the incorrect link, the Facebook ID is duplicated, instead of having the ID of the post at the end of the link. When I look on my test site at my page stream, the links are generated correctly with the post ID.

Do you have an override for the SC Social Stream or have changed our default theme file? It would be in /media/sourcecoast/themes/scsocialstream.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Hello Melissa

No overrides and for safe measure I deleted all the files in /media/sourcecoast/themes/scsocialstream and reinstalled it.

The problem still persists.

Regards

Cedric
The topic has been locked.
Support Specialist
8 years 9 months ago #54132 by mel
I found admin credentials that you sent us in the past and logged into your backend. I made a small code change to the JFBConnect component on your site (as I think this is a bug on our part). Let me know if you're still having problems with it going forward. I've added an issue to our tracker to fix it for the next release.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Hello Mel

The link works again thanks. Can you please let me know what was changed?

Regards

Cedric
The topic has been locked.
Support Specialist
8 years 9 months ago #54137 by mel
In /components/com_jfbconnect/libraries/provider/facebook/channel/page.php around line 106 replace
$ids = explode("_", $pageId);
with
$ids = explode("_", $data['id']);

and the same change in /components/com_jfbconnect/libraries/provider/facebook/channel/group.php around line 81.

I'll check this in so it will be available in the next release.

-Melissa
The topic has been locked.