Dosn't display post with video

More
8 years 5 months ago #42 by Thor
Module works fine only it wont show post that have a video in them i get this msg.

Video Unavailable
This video may no longer exist, or you don't have permission to view it.
Learn More

any reason why this is happening..

Thanks
Thor

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #43 by Thanh Nguyen
Hello Thor,

Please send me the Facebook page where you get content from for further checking.

Best regards,
JoomlaGeek team

Thanh Nguyen
Founder & Lead Developer

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #44 by Thor

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #45 by Thanh Nguyen
Hello Thor,

Our dev team are focusing on fix bug of new extension to able to release the first version on time this week.
So, we are going to check this issue next week.

Thanks for your patience.

Best regards,
JoomlaGeek team

Thanh Nguyen
Founder & Lead Developer

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #46 by Thor
Replied by Thor on topic Dosn't display post with video
Thanks

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #49 by Thanh Nguyen
Hello,

To resolves this issue, please open the file:
modules/mod_geekfacebookembed/helper.php

Find the code line below:
Code:
$link = sprintf('https://www.facebook.com/%s/posts/%s', $page_id, $postid);

And replace it with:
Code:
if(isset($item->link)) { $link = $item->link; } else { $link = sprintf('https://www.facebook.com/%s/%s/%s', $page_id, $item->type == 'video' ? 'videos' : 'posts', $postid); }

Thanh Nguyen
Founder & Lead Developer
Last edit: 8 years 5 months ago by Thanh Nguyen.

Please Log in or Create an account to join the conversation.