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.