[ANN] Facebook Lib

Andre Garzia andre at andregarzia.com
Sat May 3 19:33:10 EDT 2014


Hi Folks,

Once you authorize once, Facebook stores some cookies. So the next time you
ask for authorization it will only flash the RevBrowser window because as
soon as we open it and ask for the authorization dialog, facebook
recognizes who it is and redirects straight to the authorization callback
with the tokens.

If you logged and authorize as some user and want to authorize yourself as
some other user instead, you need to call fbLogout() function. This
function will call facebook to remove the app permissions for the logged
user and remove the data from the script local array used to store the
tokens. The next time you call fbAuthorize then you will see the dialog.

This all happens because the webview inside RevBrowser stores local data
from Facebook. There is no way around it unless we start injecting
Javascript into that window and thats a recipe for bugs.

I've updated the library and you should download again from the link you
received. The current version is numbered 1.4, it appears that sendowl
system is not sending the update emails. I will add some update checking
routine to the stack.

Richard, I am writing a better manual that you will enjoy.

Cheers




On Sat, May 3, 2014 at 10:18 AM, Richard Miller <wow at together.net> wrote:

> That sounds about right. I am having more problems on the Windows side
> than on the Mac side. If you get it to log out and then display the log-in
> window again (i.e. asking for username/pw), please let me know. I can't get
> that working.
>
> Richard
>
>
>
> On 5/3/14, 8:48 AM, Gerry wrote:
>
>> Mac. And no, not tried that. Also the FB authorisation window displays as
>> blank before disappearing - it seems to authorise ok without me doing
>> anything and lets me post from my app too. Not had a lot of time to look
>> beyond the basics yet, and I'm really waiting for the iOS version :)
>>
>> Gerry
>>
>> Sent from my iPad
>>
>>  On 3 May 2014, at 7:55 pm, Richard Miller <wow at together.net> wrote:
>>>
>>> Gerry,
>>>
>>> Are you running in on a Mac or PC?
>>>
>>> Have you been able to log out of one FB account and log back in under a
>>> different one?
>>>
>>> Thanks,
>>> Richard Miller
>>>
>>>
>>>
>>>
>>>  On 5/2/14, 5:48 PM, Gerry Orkin wrote:
>>>> Got mine - works so well and I can't wait till the mobile version.
>>>>
>>>> Gerry
>>>>
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.



More information about the Use-livecode mailing list