× Joomla Facebook Connect support forum

Topic-icon Reveal Page not Working

Active Subscriptions:

None
14 years 6 months ago #15554 by andbal
Ditto the subject... here is what I did.

Created three pages on the website...
www.seafoamsales.com/facebook-reveal-page.html
www.seafoamsales.com/facebook-landing-page.html
www.seafoamsales.com/facebook-where-to-buy.html
Created a 525 px blank template and assigned it for those three pages.
Created a facebook app.
Set the URL to www.seafoamsales.com/facebook-landing-page.html
Added the tab to the facebook page.
In JFBConnect I set the display template to the same template the items are already assigned
For the reveal article ID I set to 174. (it would be nice if I could use an SEF URL here instead of an article ID- what if I needed module assignments?)

That's it right?

If I go to my wifes laptop and unlike the sea foam page I get no reveal page. Facebook page is here...
www.facebook.com/seafoamproducts

Help appreciated.
The topic has been locked.
Support Specialist
14 years 6 months ago #15559 by alzander
Replied by alzander on topic Reveal Page not Working
Andre,
All that sounds correct. However, when I go to any of your pages that you link to, the JFBCSystem plugin doesn't look to be enabled. That's what enables our Canvas integration functionality. Additionally, in the HTML, I'm seeing an inclusion of the Facebook Javascript library (the file all.js) from something else. That will cause conflicts with JFBConnect once the JFBCSystem plugin is enabled.

Finally, as for the Reveal article using an article, if you want to include modules, you can use the {loadposition position_name} syntax in the articles contents. We intentionally don't show a full template on the Reveal page as if links are shown (in a menu or whatever), users will be able to navigate away from the Like Us page without Liking the Page. So, we're basically trying to prevent what would be a common issue/question by not automatically including the normal modules from your site on the Reveal page.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16027 by andbal
Replied by andbal on topic Reveal Page not Working
Hi Alex,

Thanks for your response. You are correct, the plugin was not enabled. I enabled the plugin, and removed all.js from the head of my template. However I still don't get a reveal page.

FYI, this site is on a CDN, so all css/java/images will show up in the source code as coming from offsite.

Also, my brother purchased JFBConnect for our Company, and it is super-annoying for me to have to login to facebook as him for support questions (he isn't that pleased with the arrangement either). If I just login as me can I get support?
The topic has been locked.
Support Specialist
14 years 6 months ago #16033 by alzander
Replied by alzander on topic Reveal Page not Working
Andre('s brother),
Just create another account and post to this topic and I can add the subscription to your account as well. Super-annoying-ness averted :D

I just tried to go to your Facebook Page, but none of the tabs in the left seem to show any content for me. Can you tell me which one(s) are using JFBConnect with the URLs you post above? Mainly, click on the tab, and post the full URL, like below (with the sk=app_xxxx portion):
www.facebook.com/seafoamproducts?sk=app_262642867117326

If I go to the URLs on your site, they look good now, but I'd need to see them in your Page to diagnose further. Not sure why none of the tabs are working though. Can you check if your Page or any of the Application tabs setup in an Admin or Sandbox mode?

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

None
14 years 6 months ago #16036 by piebal
Replied by piebal on topic Reveal Page not Working
Hi Alex,
We have three tabs in the right, They are all showing content for me here in Wisconsin, and my brother in Minneapolis?!
Sea Foam -http://www.facebook.com/seafoamproducts?sk=app_262642867117326
Sea Foam Retailers -http://www.facebook.com/seafoamproducts?sk=app_178896242201351
Sea Foam Stadium -http://www.facebook.com/seafoamproducts?sk=app_123333751111152

All of these are coming from our Joomla site. The tab "Sea Foam" is setup through JFBConnect to have the reveal page. The other two pages I didnt really think there was anything to setup in JFBconnect? In facebook they are setup as tabs, with the page tab url set to the corresponding page on the joomla site.

www.seafoamsales.com/facebook-landing-page.html
www.seafoamsales.com/facebook-where-to-buy.html
www.seafoamsales.com/sea-foam-stadium-facebook.html

Thanks,
Would be more than happy to send you superadmin creds, just shoot me an email This email address is being protected from spambots. You need JavaScript enabled to view it.
The topic has been locked.
Support Specialist
14 years 6 months ago #16042 by alzander
Replied by alzander on topic Reveal Page not Working
Pierre,
Not sure what happened. The other pages are loading now, except the main "Sea Foam" one. Internet burp.

On the Sea Foam one, I Liked it and it worked fine.

Unliked though, I basically see a dot in the top left corner and a blank white page. The really strange thing (see attached picture) is that content from your site -is- loading. However, the only content that's coming through is the dot (see the inset image at the top in the HTML) and then there's a RokBox in the main content area which has no content excluding a "Close [x]" button:
File Attachment:


Not sure what the RokBox is doing. It's possible that's just a gate on your site that's covering other content from showing.. or not. Hopefully, it helps somehow though. Unfortunately, Facebook doesn't show us the URL it 'thinks' it's pulling from, or that would obviously help. Maybe this will help you understand things though.

As for suggestions:
* Try a different template (to see what happens)
* Disable the RokBox and see what happens

Not sure what else to say, since content is being loaded...

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16047 by piebal
Replied by piebal on topic Reveal Page not Working
Hi Alex

The period was a good clue... Initially our reveal page had an image in a module that was assigned to the reveal page. Since I didn't actually want any content in the article I just typed a dot.

So, that made me realize that what is happening is the template isnt loading on the reveal page, that's why nothing was showing up but the dot that was in the content item. I turned off the module, and moved its content into the article. Now the reveal page is working - kinda. But the template still wont load! Is there a way to totally disable the template switcher in JFBconnect since the template is already assigned in the template manager?

I disabled rokbox, I turned off my CDN so all content is being served by the site. Still no dice. Can you please take another look at it?
The topic has been locked.
Support Specialist
14 years 6 months ago #16049 by alzander
Replied by alzander on topic Reveal Page not Working
There's no switch to disable the template switcher.. but it can be done with an easy code change. With JFBConnect, we always set the ?tmpl=component parameter in the URL for the reveal page. The main reason for this is to get rid of most of the 'extra' stuff on the page from modules (menus, links, etc) as if they remain, they're a way for the user to leave navigate away from the Reveal Page instead of clicking Like. It's how we protect user's from letting user's escape without having to go to all the trouble you obviously did :D So, the page that's actually loading on your site is:
www.seafoamsales.com/facebook-landing-page.html?tmpl=component

To fix that, edit /components/com_jfbconnect/libraries/canvas.php Around line 115, you'll see:
$app->redirect('index.php?option=com_content&view=article&tmpl=component&id=' . $revealPage);
Simply remove the &tmpl=component from that line.

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16052 by piebal
Replied by piebal on topic Reveal Page not Working
Hi Alex,

I think were on to something here. I realized that if you remove the &tmpl=component from the url as such:
www.seafoamsales.com/index.php?option=co...&view=article&id=174
Everything is all good! template loads fine and url is re-written by sh404sef to /facebook-landing-page.html

However when I alter
/components/com_jfbconnect/libraries/canvas.php and remove the &tmpl=component we get:

The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept cookies.

Would it be easier just to hard-code the reveal url pointing to the sef url? I just need to get this to work somehow!

EDIT: I figured I might be able to do this myself either with a 301 redirect or setting a custom url in sh404sef's url manager, however neither worked. I set this htaccess rule
Redirect 301 /index.php?option=com_content&view=article&tmpl=component&id=174 www.seafoamsales.com/index.php?option=co...&view=article&id=174
and it didnt do anything.
So I tried
Redirect 301 /index.php?option=com_content&view=article&tmpl=component&id=174 www.seafoamsales.com/facebook-landing-page.html
and I got a
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
The topic has been locked.
Support Specialist
14 years 6 months ago #16059 by alzander
Replied by alzander on topic Reveal Page not Working
Pierre,
Can you try disabling sh404SEF and removing the tmpl=component portion of the URL again? That will help narrow down if it's a JFBConnect thing, or a conflict with sh404SEF. Removing that, from what I can tell, cause a redirect issue.

Regarding your .htaccess rule, that won't work with Query Strings (that I know of). You'd need to use the following format:
RewriteCond %{QUERY_STRING} option=com_content
RewriteCond %{QUERY_STRING} view=article
RewriteCond %{QUERY_STRING} id=<REVEAL PAGE ID>
RewriteRule ^(.*) http://www.seafoamsales.com/facebook-landing-page.html [R=301,L]

Finally, you're free to try simply replacing the whole URL with the URL you want to go to (hard-coding it) as well.. heck try anything :)

Let us know. We'll get you going very soon.
Alex
The topic has been locked.