On 09/18/2013 09:11 AM, Kumar McMillan wrote:
>
> On Sep 18, 2013, at 9:39 AM, Xes Garcia <[email protected]> wrote:
>
>> So
>> I order to login with Facebook and use the javascript SDK and get
>> credentials to update my status etc from my app I need to provide an URL but
>> that's not possible in an installed app
>
> Hi. Do you mean it's not possible with a packaged app? It should work fine
> for hosted apps.
>
>> What can I do to have credentials to work with Facebook?
>
> We have the same problem with oauth in packaged apps; you can specify
> redirects like this:
> https://developer.mozilla.org/en-US/docs/Web/Apps/Manifest?redirectlocale=en-US&redirectslug=Apps%2FManifest#redirects
> Can you use oauth for Facebook?
>
> Conceptually, a Facebook login from a packaged app is going to work more like
> an iOS app (i.e. there is not URL)
> https://developers.facebook.com/docs/ios/login/
>
> If you figure it out, please post back to the list.
Using redirects and the "origin" field in manifests is the way to go.
This is how the facebook contacts import is implemented in gaia itself.
Fabrice
--
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps