Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

facebook_login_url() #99

Open
wants to merge 1 commit into
base: 2.0
Choose a base branch
from
Open

facebook_login_url() #99

wants to merge 1 commit into from

Conversation

kriswallsmith
Copy link

This adds a function to return the Facebook login URL. This is handy if you are using the Javascript SDK but want a hard-coded href in place in case Javascript is off.

@lsmith77
Copy link
Member

PR is a bit too javacripty for my area expertise .. i noticed the "todo" .. do you want to have this PR merged in its current state?

*/
public function getLoginUrl($parameters = array())
{
return $this->container->get('fos_facebook.helper')->loginUrl($parameters);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not goal of PR, but what about injecting helper via constructor and decline injecting container?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Koc Circular reference issue AFAICS (btw, the real place to solve it would be the helper, not the Twig extension as the helper would probably break because of a circular reference if you activate the PhpEngine without activating another engine)

@Koc
Copy link

Koc commented Apr 2, 2012

@lsmith77 , @kriswallsmith ping

@Koc
Copy link

Koc commented Apr 26, 2012

too many changes for this todo: https://github.com/Koc/FOSFacebookBundle/commit/c98c529a70b954fc345c04cb0213b33a0d08d806 (not tested yet + I've breaked newlines). Imho better merge without it.

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

Successfully merging this pull request may close these issues.

4 participants