integrating with FB JS API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

integrating with FB JS API

Siemen Baader
Hi,

I am puzzled how to integrate the Facebook login JS API [1] with Seaside. Basically what the API does is to retrieve an access token client-side and pass it to a JS callback in the browser. When I have the token, I need to pass it to my backend and check it again with the server. If it is OK, I set the session to be authenticated and redirect to the logged in experience.

So - how do I set up a Seaside callback and execute it from JS, with the token passed along to my callback code?

Any guidance would be most welcome!

Siemen


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: integrating with FB JS API

Sabine Manaa
Hi Siemen,
You can use the code of Sven:
Regards
Sabine

Siemen Baader [via Smalltalk] <[hidden email]> schrieb am Mo. 12. Dez. 2016 um 17:44:




Hi,

I am puzzled how to integrate the Facebook login JS API [1] with Seaside. Basically what the API does is to retrieve an access token client-side and pass it to a JS callback in the browser. When I have the token, I need to pass it to my backend and check it again with the server. If it is OK, I set the session to be authenticated and redirect to the logged in experience.

So - how do I set up a Seaside callback and execute it from JS, with the token passed along to my callback code?

Any guidance would be most welcome!

Siemen




_______________________________________________


seaside mailing list


[hidden email]


http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





















If you reply to this email, your message will be added to the discussion below:


http://forum.world.st/integrating-with-FB-JS-API-tp4926661.html





To start a new topic under Seaside General, email [hidden email]


To unsubscribe from Seaside, click here.


NAML

Reply | Threaded
Open this post in threaded view
|

Re: integrating with FB JS API

Siemen Baader
Thanks, Sabine. Looks great and eloquently documented!

I'm still curious about calling a seaside callback from JS - is it possible?

Siemen 

On 12/12/2016, at 17.50, Sabine Manaa <[hidden email]> wrote:

Hi Siemen,
You can use the code of Sven:
Regards
Sabine

Siemen Baader [via Smalltalk] <[hidden email]> schrieb am Mo. 12. Dez. 2016 um 17:44:




Hi,

I am puzzled how to integrate the Facebook login JS API [1] with Seaside. Basically what the API does is to retrieve an access token client-side and pass it to a JS callback in the browser. When I have the token, I need to pass it to my backend and check it again with the server. If it is OK, I set the session to be authenticated and redirect to the logged in experience.

So - how do I set up a Seaside callback and execute it from JS, with the token passed along to my callback code?

Any guidance would be most welcome!

Siemen




_______________________________________________


seaside mailing list


[hidden email]


http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





















If you reply to this email, your message will be added to the discussion below:


http://forum.world.st/integrating-with-FB-JS-API-tp4926661.html





To start a new topic under Seaside General, email [hidden email]


To unsubscribe from Seaside, click here.


NAML



View this message in context: Re: integrating with FB JS API
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: integrating with FB JS API

Paul DeBruicker
Take a look at the examples in this repo.  One of them sets up and triggers a seaside callback from JS


http://smalltalkhub.com/#!/~JohanBrichau/SeasideGoogleMapsV3


Its also a good example of how you cold use Seaside's JS creation methods.





Siemen Baader wrote
Thanks, Sabine. Looks great and eloquently documented!

I'm still curious about calling a seaside callback from JS - is it possible?

Siemen

On 12/12/2016, at 17.50, Sabine Manaa <[hidden email]> wrote:

> Hi Siemen,
> You can use the code of Sven:
> https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md
> Regards
> Sabine
>
> Siemen Baader [via Smalltalk] <[hidden email]> schrieb am Mo. 12. Dez. 2016 um 17:44:
>>
>>
>>
>>
>> Hi,
>>
>> I am puzzled how to integrate the Facebook login JS API [1] with Seaside. Basically what the API does is to retrieve an access token client-side and pass it to a JS callback in the browser. When I have the token, I need to pass it to my backend and check it again with the server. If it is OK, I set the session to be authenticated and redirect to the logged in experience.
>>
>> So - how do I set up a Seaside callback and execute it from JS, with the token passed along to my callback code?
>>
>> Any guidance would be most welcome!
>>
>> Siemen
>>
>> 1: https://developers.facebook.com/docs/facebook-login/web
>>
>>
>>
>> _______________________________________________
>>
>>
>> seaside mailing list
>>
>>
>> [hidden email]
>>
>>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> If you reply to this email, your message will be added to the discussion below:
>>
>>
>> http://forum.world.st/integrating-with-FB-JS-API-tp4926661.html
>>
>>
>>
>>
>>
>> To start a new topic under Seaside General, email [hidden email]
>>
>>
>> To unsubscribe from Seaside, click here.
>>
>>
>> NAML
>
> View this message in context: Re: integrating with FB JS API
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: integrating with FB JS API

Siemen Baader
Thanks, Paul. I will look!

Siemen

Sent from my iPhone

On 12/12/2016, at 19.08, Paul DeBruicker <[hidden email]> wrote:

> Take a look at the examples in this repo.  One of them sets up and triggers a
> seaside callback from JS
>
>
> http://smalltalkhub.com/#!/~JohanBrichau/SeasideGoogleMapsV3
>
>
> Its also a good example of how you cold use Seaside's JS creation methods.
>
>
>
>
>
>
> Siemen Baader wrote
>> Thanks, Sabine. Looks great and eloquently documented!
>>
>> I'm still curious about calling a seaside callback from JS - is it
>> possible?
>>
>> Siemen
>>
>> On 12/12/2016, at 17.50, Sabine Manaa &lt;
>
>> manaa.sabine@
>
>> &gt; wrote:
>>
>>> Hi Siemen,
>>> You can use the code of Sven:
>>> https://github.com/svenvc/docs/blob/master/zinc/zinc-sso-paper.md
>>> Regards
>>> Sabine
>>>
>>> Siemen Baader [via Smalltalk] <[hidden email]> schrieb am Mo. 12. Dez.
>>> 2016 um 17:44:
>>>>
>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I am puzzled how to integrate the Facebook login JS API [1] with
>>>> Seaside. Basically what the API does is to retrieve an access token
>>>> client-side and pass it to a JS callback in the browser. When I have the
>>>> token, I need to pass it to my backend and check it again with the
>>>> server. If it is OK, I set the session to be authenticated and redirect
>>>> to the logged in experience.
>>>>
>>>> So - how do I set up a Seaside callback and execute it from JS, with the
>>>> token passed along to my callback code?
>>>>
>>>> Any guidance would be most welcome!
>>>>
>>>> Siemen
>>>>
>>>> 1: https://developers.facebook.com/docs/facebook-login/web
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>>
>>>> seaside mailing list
>>>>
>>>>
>>>> [hidden email]
>>>>
>>>>
>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> If you reply to this email, your message will be added to the discussion
>>>> below:
>>>>
>>>>
>>>> http://forum.world.st/integrating-with-FB-JS-API-tp4926661.html
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> To start a new topic under Seaside General, email [hidden email]
>>>>
>>>>
>>>> To unsubscribe from Seaside, click here.
>>>>
>>>>
>>>> NAML
>>>
>>> View this message in context: Re: integrating with FB JS API
>>> Sent from the Seaside General mailing list archive at Nabble.com.
>>> _______________________________________________
>>> seaside mailing list
>
>> seaside@.squeakfoundation
>
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>> _______________________________________________
>> seaside mailing list
>
>> seaside@.squeakfoundation
>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/integrating-with-FB-JS-API-tp4926661p4926686.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside