Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Firefox OS Questions

114 views
Skip to first unread message

Pedro Nicholas Souza Alves

unread,
Jan 31, 2013, 11:33:38 PM1/31/13
to dev...@lists.mozilla.org
Hello guys

I have a few questions about FirefoxOS development.

I want to use AMD (with require.js) to modularize my app. But, when i use
the
simulator, it seens to not work at all (but in browser, this works just
fine).
I can't use modular approach in my FirefoxOS Apps?

Another question is about facebook authentication. How can i make my users
sign in into my application via facebook oauth? I using the facebook
javascript sdk.
To use facebook authentication, i must configurate a URL for redirect after
the authentication.
Putting the snippet *document.write(window.location.href)* he returns a
weird URL, with the protocol
app.* *And i cannot use this url on my facebook app configurations. It's
impossible for now do this kind of trick?

Thanks
--
*Pedro Souza*

55+ (11) 9-9915-9977
about.me <http://about.me/pedronicholas>

willy martin aguirre rodriguez

unread,
Jan 31, 2013, 11:47:14 PM1/31/13
to Pedro Nicholas Souza Alves, dev...@lists.mozilla.org
Hi!

for requirejs i have a example https://github.com/Droid2Fox/template-jqm
for facebook authentication could be the permission maybe add it?

Regards, Willy
--
NetCAT team <http://wiki.netbeans.org/NetCATTribes>
Blog: http://osgux.tumblr.com/
Mozilla Reps: https://reps.mozilla.org/u/Willy/
Mozilla Hispano -
Willyaguirre<https://www.mozilla-hispano.org/documentacion/Usuario:Willyaguirre>

James Burke

unread,
Feb 1, 2013, 12:42:34 AM2/1/13
to Pedro Nicholas Souza Alves, dev...@lists.mozilla.org
On Thu, Jan 31, 2013 at 8:33 PM, Pedro Nicholas Souza Alves
<pedronich...@gmail.com> wrote:
> Hello guys
>
> I have a few questions about FirefoxOS development.
>
> I want to use AMD (with require.js) to modularize my app. But, when i use
> the
> simulator, it seens to not work at all (but in browser, this works just
> fine).
> I can't use modular approach in my FirefoxOS Apps?

In addition to Willy's example, the mortar templates are some examples
that work:
https://github.com/mozilla/mortar

If you have more questions about using requirejs in this environment,
feel free to open a ticket on the requirejs site. It will be a better
venue for an answer than this list:
https://github.com/jrburke/requirejs/issues

Sorry, I do not have anything to offer on the Facebook SDK part of
your question.

James

JOSE MANUEL CANTERA FONSECA

unread,
Feb 1, 2013, 3:08:10 AM2/1/13
to Pedro Nicholas Souza Alves, dev...@lists.mozilla.org

>
>Another question is about facebook authentication. How can i make my users
>sign in into my application via facebook oauth? I using the facebook
>javascript sdk.

Firefox OS is integrated with Facebook and does not use the FB JS SDK at
all, it is not necessary. If you wanna authenticate users with FB, the
mechanism to use is similar to the ones found at

https://github.com/mozilla-b2g/gaia/tree/master/apps/communications/contact
s/oauth2

The only thing is that will need to host a page similar than flow.html to
which redirect to


>To use facebook authentication, i must configurate a URL for redirect
>after
>the authentication.
>Putting the snippet *document.write(window.location.href)* he returns a
>weird URL, with the protocol
>app.* *And i cannot use this url on my facebook app configurations. It's
>impossible for now do this kind of trick?
>
>Thanks
>--
>*Pedro Souza*
>
>55+ (11) 9-9915-9977
>about.me <http://about.me/pedronicholas>
>_______________________________________________
>dev-b2g mailing list
>dev...@lists.mozilla.org
>https://lists.mozilla.org/listinfo/dev-b2g
>



________________________________

Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at:
http://www.tid.es/ES/PAGINAS/disclaimer.aspx
0 new messages