Start with Facebook and Google login function.
[Facebook]
First we need to initialize Facebook SDK.
on mouseUp
put haoFacebookInit("{APP_ID}")
end mouseUp
Then open Facebook login view and pass the permissions you wish.
put haoFacebookLogin("email"&cr&"public_profile") into tResult
After successfully login we can get the access token. With access token, we are able to use the Graph API. Graph API can do a lot of things such as getting user name, id, photos even post photos almost anything.
put haoFacebookGetAccessToken() into tToken
GET URL ("https://graph.facebook.com/me?access_token="&tToken)
answer the urlResponse
[Google]
It's much easier to login to Google using LiveCode External. Just one command.
put haoGoogleAuthLogin() into tResult
This command open Google login view.
When successfully login. Account information will return to LiveCode.
These two simple login function take me several days. It's a good start and I will try to build more and make them more stable.
Hi, HAO do you sell it ?
回覆刪除I would like to know if you could help me with a firebase external development?
best regard
Jose
Hi, can you help me with the facebooklib please. Thanks
回覆刪除Sorry for the very late reply.. I am not selling any of my external now cause I don't much time to maintain it. And this external is far from finish. But I think after LiveCode release JavaFFI interface(widget). It's easier to develop android external so hope someone can create a Facebook or Google widget.
回覆刪除