Hello there,

Thanks for the module, it's making my life simpler. I am creating a website that features many different organizations, and each organization may give us a link to their facebook page to have their fb feed displayed on their org's description page. I've been doing this by taking the user's fb URL in a field, and then using views to spit that out into some custom text + replacement fields, as such below.

<div id="fb-root"></div>
<div class="fb-page" data-href="[field_facebook_link]" data-tabs="timeline" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"><div class="fb-xfbml-parse-ignore"><a href="[field_facebook_link]">[title] on Facebook</a></div></div>

Now, the issue is that for those who have no reason to understand the difference, they don't understand the difference between a personal page, a page page, and a group, but the Page Plugin only works with page-pages.

Is there a way that I can get the module evaluate whether the URL refers to a group OR to simpy hide the output instead of displaying fb's "Error: Not a valid Facebook Page url."?

Thanks.

Comments

ltsignups created an issue. See original summary.

Jabastin Arul’s picture

Status: Active » Needs work
baekelandt’s picture

Status: Needs work » Active

I don't think there is a way to check if a facebook URL links to a page or to a profile. I had a quick look at the developerspages but I didn't find anything that can help us for this issue.

You can hide the output of the block by implementing hook_block_view_MODULE_DELTA_alter(&$data, $block) but I don't think that would be very user-friendly because the user is not informed that there is an error caused by the URL they provided.

baekelandt’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
Category: Support request » Feature request
Status: Active » Needs work
Nathan Tsai’s picture

Hi, has anyone solved this?
Although I'm not using this module, I would like to hide the error message if it appears.