Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

How to show facebook login on page instead of popup? #20

Closed
mchint01 opened this issue Jul 5, 2014 · 5 comments
Closed

How to show facebook login on page instead of popup? #20

mchint01 opened this issue Jul 5, 2014 · 5 comments

Comments

@mchint01
Copy link

mchint01 commented Jul 5, 2014

Using your angular SDK, can you help me on how to show login on my app page.

Like I need display: 'page' instead of display: 'popup'

Thank You

@AlmogBaku
Copy link
Owner

what does it mean to display page?

Anyway, you should just do $facebook.login()
If you have to do something with that later.. you can use also promise such as:

$facebook.login().then(function(response) {
    console.log(response);
});

@mchint01
Copy link
Author

mchint01 commented Jul 6, 2014

Hi,

I mean i do not want login popup. I need to to display facebook login on whole page. The one explained below:

https://developers.facebook.com/docs/reference/dialogs/oauth/

Example: like signup on vimeo website using facebook.

Merwan chinta

On Jul 5, 2014, at 5:49 PM, Almog Baku notifications@github.com wrote:

what does it mean to display page?

Anyway, you should just do $facebook.login()
If you have to do something with that later.. you can use also promise such as:

$facebook.login().then(function(response) {
console.log(response);
});

Reply to this email directly or view it on GitHub.

@AlmogBaku
Copy link
Owner

I see..
So, you need to implement it by yourself.

This repository only make the facebook's js sdk supports AngularJS.

You can make the integration by yourself(we actually did it one in one of our projects at GoDisco).. so I close this issue.

It should look something like this:

var redirect_uri = window.location.href.replace(window.location.hash,'');
window.location.href = "https://www.facebook.com/dialog/oauth?"
       +"scope="+encodeURIComponent("email,user_birthday,user_likes")
       +"&client_id="+encodeURIComponent(app_id)
       +"&redirect_uri="+encodeURIComponent(redirect_uri);

@mchint01
Copy link
Author

mchint01 commented Jul 6, 2014

Ok cool, thank you!

I thought javascript SDK can show login dialog on page with setting display: 'page' option.

But anyway thank you i will implement it then :)

Merwan chinta

On Jul 5, 2014, at 7:52 PM, Almog Baku notifications@github.com wrote:

I see..
So, you need to implement it by yourself.

This repository only make the facebook's js sdk supports AngularJS.

You can make the integration by yourself(we actually did it one in one of our projects at GoDisco), but anyway your on your on.. so I close this issue.

It should look something like this:

                var redirect_uri = window.location.href.replace(window.location.hash,'');
                window.location.href = "https://www.facebook.com/dialog/oauth?"
                    +"scope="+encodeURIComponent("email,user_birthday,user_likes")
                    +"&client_id="+encodeURIComponent(app_id)
                    +"&redirect_uri="+encodeURIComponent(redirect_uri);


Reply to this email directly or view it on GitHub.

@AlmogBaku
Copy link
Owner

@mchint01 Any feature that supports by the regular facebook sdk, is supported by this module.
This module is wrapped the facebook js sdk.

So, if it does support you can use it :) (I think it doesn't supported by pardon me if i'm wrong)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants