Solved Facebook login on android
-
Seams like we need to request a long live access token witch leasts for 60 days:
https://developers.facebook.com/docs/facebook-login/access-tokens/#extending -
I finally got it working !!!
I was able to merge the Facebook SDK into my Android app, to get 60 day longterm accesstoken.
If someone is interested please answer me, or write me a mail. Then I'll try to prepare the code so everyone can have it :)but despite its working, its not very nice.
chears schabi
-
Nice work schabi, you can add a link to your code here in the forums if you like?
Since a couple of days, we now also have a Facebook Qt 5 plugin ready for Android & iOS. You can have a look at the sample on github and the tutorials here:
- "How to integrate Facebook into Qt 5 Apps":http://plugins.v-play.net/blog/2014/05/integrate-facebook-in-your-qt-5-apps/
- "Tutorial & Sample Code for Facebook Login in Qt 5":http://plugins.v-play.net/blog/2014/06/how-to-benefit-from-facebook-login-in-your-qt-5-app/
- "Facebook Plugin Overview":http://plugins.v-play.net/plugins/facebook/
- "Facebook Plugin Documentation":http://plugins.v-play.net/doc/plugin-facebook/
-
the_scrabi, I would really appreciate a working example to study. My desired result is to add Google Login to Qt Android app and the problem (missing webview) is fairly similar. Also could help me to resolve the Google maps integration issues.
Another good exmaple to study is probably "Qt hangman ":http://blog.qt.digia.com/blog/2013/12/12/implementing-in-app-purchase-on-android/ since it implements android in-app purchasing an that can't be too different compared to what we need to achieve.
-
All right I'll try to get it ready the next days. But I need to apologise, it still has some problems, and I do this in my spare time. So it will take me a few days to get it working correctly.
Also this is NOT using a Web login any more !!! Since you could only get short term access token from Web login I went over to the regular facebook sdk for android.
But if you want to do Web Login here is something that might help you:
Android Activity Doc:
http://developer.android.com/reference/android/app/Activity.htmlIntent Doc (you need intent to start new activitys):
http://developer.android.com/reference/android/content/Intent.htmlQtAndroidExtras (you need it to call/run java code):
http://qt-project.org/doc/qt-5/qtandroidextras-index.htmlHere a link to an older example of my facebook login thing. It still uses Web login:
https://github.com/theScrabi/FbLoginQtAndroid.gitIf something is not clear, or you still have questions feel free to mail me :)
greetings schabi
-
All right i said i would need a few days. I guess I overestimated my self a bit. It now took me about two full months to get it working that prober to give it to other people. But now I also did a small documentation.
I hope it will help somebody. And if you still have questions or any wishes feel free to mail me.Github repository: https://github.com/theScrabi/TizFbExample
Chears schabi
-
I also stuck to use Fb login in my QML.
Would you like to share me how to do yourself so will be able to do myself too.Yeah ..
This example is working as per requirement thanks for this.. :) -
This post is deleted! -
This post is deleted! -
This post is deleted!