[Seaside] integrating with FB JS API

Siemen Baader siemenbaader at gmail.com
Mon Dec 12 18:07:59 UTC 2016


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 <manaa.sabine at gmail.com> 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 at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20161212/de7fad04/attachment-0001.html>


More information about the seaside mailing list