× Joomla Facebook Connect support forum

Topic-icon Only members can see photos on facebook

Active Subscriptions:

None
Hello,

I have a little problem, i hope i can explane it in my broken english.

I don't want all people to see the photos on my facebook page.
So i thought of this solution:
I made an facebook tab, that links to a page on my website.
That page is secured, and i want on that page (in the frame on facebook) the button with: loggin with facebook.
After they logged in on my website (in the frame of facebook), i can except them/or not.

I have made a tab (www.facebook.com/cafestoppels) towards a page that is secured on my website (www.stoppels.net/site). When people are logged in, they are forwarded to the photos. But when they ar nog logged in, my website appears in the frame on facebook with template, login form, etc.
What i want is that they only see a page with te logginbutton.
Is this possibel?
I hope you understeand what i mean.

Mvg Niels
The topic has been locked.
Support Specialist
14 years 7 months ago #15033 by alzander
Niels,
Your English is fine :)

There will be a few steps to this, and we'll try to take it slowly to get where you want to be:
1) Create a new Joomla article. In the article, simply put: "To view photos, please login: {JFBCLogin}" - That will create the 'blank' page with your login button. You can put whatever text you want on that page.
2) Take note of the ID of your Joomla article
3) In your Facebook Application setup, for the Page Tab URL, set it to:
www.site.com/index.php?option=com_conten...id=XX&tmpl=component
* Replace XX with the article ID. The tmpl=component will remove all other modules and template things from your page, preventing links to other pages on your site from showing
4) In JFBConnect, set the New User or Returning User redirection to the page on your site with the images you want to display.

Hopefully, this will work for you, but I'm sure you may run into some issues. If so, just let us know and we'll do what we can to help!

Alex
The topic has been locked.
Active Subscriptions:

None
Thank you, i am a little bit further now.
When i'm not logged in, it works perfect, but when i'm already logged in, i'm just seeing the article that i made about the need to log in.
So what i need is, that when i'm logged in, he redericts to the photo's.
That would also be better, because now when people log in on my website, they also rederict automaticly to the photos.

I hope there is a solution.

Mvg
The topic has been locked.
Support Specialist
14 years 7 months ago #15091 by alzander
Mvg,
You can try enabling the "Automatically Log Facebook Users In" setting, which should fix the needing to log in thing (for users that already have done so).

As for on your website, that may be a problem we can't really fix, as right now, we only support one redirect. If necessary, we can likely give you a code snippet to hard code the redirect if the user is within Facebook so that you can use the redirection setting in JFBConnect for on-site users only, and redirect on-Facebook ones to the gallery.

Glad we're getting closer!
Alex
The topic has been locked.
Active Subscriptions:

None
I already have the automaticly sign in.
When people click on "photos" in the menu in facebook, they get my page to login, that works fine.
But when they log in, watch some photos, en then click for the second time in the same session on "photos" in the facebook menu.
They only get the page with the text: You need to login, but without the login with facebook button.

So what i need is, that my page checks if the user is already logged in;
no -> the text "you need to login" and the "login with facebook" button
yes -> rederict to the page with photos.

I think of making the page for checking (the one that is on the facebook menu), with jumi and hard code? This way, on my website everything wil go perfectly like before,
So the article that comes in the iframe of facebook must have some code like:

if ($login = "yes") {
// rederection towards the page with photos
}
else {
echo "You have to login! {JFBCLogin}";
}

I think this is the best way, but i don't know how to check if they are logged in with jfbconnect.

Mvg, Niels
The topic has been locked.