Topic-icon Facebook Login Full Screen

Active Subscriptions:

None
14 years 1 month ago #22146 by simon
I'm reference to this post

www.sourcecoast.com/forums/jfbconnect/jf...ok-login-full-screen

So can you help me with this task ?

Facebook Full Screen Login ?

Thanks
The topic has been locked.
Active Subscriptions:

None
14 years 1 month ago #22353 by simon
Replied by simon on topic Facebook Login Full Screen
Any news about this ?

Thanks
The topic has been locked.
Active Subscriptions:

None
14 years 3 weeks ago #22586 by simon
Replied by simon on topic Facebook Login Full Screen
Bump
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22703 by alzander
Replied by alzander on topic Facebook Login Full Screen
Simon,
Sorry for the delay. Below is the PHP code you'll need to use to generate a link for the full-screen popup. You can use this anywhere you can put PHP code, and it will automatically fill out the necessary information to generate the URL:
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
    $configModel = $jfbcLibrary->getConfigModel();
    $query = array();
    $query['scope'] = $configModel->getRequiredPermissions();
    $query['redirect_uri'] = 'http://YOUR-SITE.COM/index.php?option=com_jfbconnect&task=loginFacebookUser';
    $query['client_id'] = $jfbcLibrary->facebookAppId;
    $query = http_build_query($query, null, '&');
    $loginUrl = 'https://www.facebook.com/dialog/oauth?'.$query;
    echo '<a href="'.$loginUrl.'">Login!</a>';
The main things that will be unique to your site are your Facebook Application ID and the "scope" (which are the permissions required). Additionally, the URL will be 'encoded' properly to make sure that all the parameters are passed to Facebook without issue.

Once you get that to generate the URL, you can actually copy the link itself creates anywhere and use it as raw HTML. It will be a long URL though, just so know.

Hope that helps, but if you run into any issues, or have questions, let us know!

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

None
14 years 3 weeks ago #22714 by simon
Replied by simon on topic Facebook Login Full Screen
Thanks
I'm using this method so can i put the code there ?

This is my custom Facebook button code and i want to put the code there

The other thing is ... can i use the redirect from JFBConnect with this method ? Now when you are login for the first time you are redirect to your Profile Page
The topic has been locked.
Active Subscriptions:

None
14 years 3 weeks ago #22715 by simon
Replied by simon on topic Facebook Login Full Screen
<a id="face" href="javascript:void(0)" onclick="jfbc.login.login_custom();"></a><br />
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22722 by alzander
Replied by alzander on topic Facebook Login Full Screen
Simon,
If you used the PHP code to generate the right URL for your site, then simply update the href= in the link above to remove the javascript:void(0) bit and use that new URL. Then, remove the whole onclick action.

That should do what you're looking for.

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 weeks ago #22728 by simon
Replied by simon on topic Facebook Login Full Screen
It is not working and i see two problems

1 . it's return me to this page : http://my page.com/index.php#_=_ and the user is not login in to my website. I want user to be redirect to specific page after login (like in JFBConnect )

2. It's not counting in JFBConnect when the user is login with Facebooke

I want this (Full Screen) to work with JFBConnect not the way you give me

Can this be done ?
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22756 by alzander
Replied by alzander on topic Facebook Login Full Screen
Simon,
We'll have to do more testing. When I tested the code I posted, it worked for us. Our redirection was set for a fixed menu item though, not for returning the user to the current page. That will be more difficult.

Can you post, or Private Message, a URL that you have that code enabled on so we can see what's going on?

For "It's not counting in JFBConnect when the user is login with Facebooke", I'm not sure what you mean. Can you explain that more?

Thanks,
Alex
The topic has been locked.