sktanmoy Active Member Licensed User Longtime User Jul 25, 2013 #1 I'm working with a Facebook application. As still b4a didn't release Facebook library, I've no way without using browser to get access token after app authorization. I've used webview and did everything there, user could login from the webview, authorize application, and then I could collect access token from browser. But user won't feel comfortable to put username/password within app. So I can easily open the default browser from the app with the required url for app authorization and access token. Is there any way so that I can collect the token from the user's browser? I got a tutorial here, I think it should work. Can anyone help me to find a way that in b4s?
I'm working with a Facebook application. As still b4a didn't release Facebook library, I've no way without using browser to get access token after app authorization. I've used webview and did everything there, user could login from the webview, authorize application, and then I could collect access token from browser. But user won't feel comfortable to put username/password within app. So I can easily open the default browser from the app with the required url for app authorization and access token. Is there any way so that I can collect the token from the user's browser? I got a tutorial here, I think it should work. Can anyone help me to find a way that in b4s?
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2013 #2 This will only work if you are showing your own web page. Upvote 0
sktanmoy Active Member Licensed User Longtime User Jul 26, 2013 #3 Erel said: This will only work if you are showing your own web page. Click to expand... I've return URL set for the Facebook application which with redirect user to http://mydomain.com/#access_token=..... So definitely I want to open my Android app from that page and pass the access_token value. Help me to know how can I do that Upvote 0
Erel said: This will only work if you are showing your own web page. Click to expand... I've return URL set for the Facebook application which with redirect user to http://mydomain.com/#access_token=..... So definitely I want to open my Android app from that page and pass the access_token value. Help me to know how can I do that
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2013 #4 You can use the solution described in the link you posted (the answer that received 214 points). You should call Activity.GetStartingIntent to get the intent that caused the activity to be resumed. Upvote 0
You can use the solution described in the link you posted (the answer that received 214 points). You should call Activity.GetStartingIntent to get the intent that caused the activity to be resumed.
sktanmoy Active Member Licensed User Longtime User Jul 26, 2013 #5 Erel said: You can use the solution described in the link you posted (the answer that received 214 points). You should call Activity.GetStartingIntent to get the intent that caused the activity to be resumed. Click to expand... I've posted here because I've failed to understand <data android:scheme="http" android:host="twitter.com"/> Click to expand... in here, I mean why twitter Code: Copy <intent-filter> <data android:scheme="http" android:host="twitter.com"/> <action android:name="android.intent.action.VIEW" /> </intent-filter> <data android:scheme="my.special.scheme" /> Click to expand... in here, what my.special.scheme is, how to use etc. Code: Copy <intent-filter> <data android:scheme="my.special.scheme" /> <action android:name="android.intent.action.VIEW" /> </intent-filter> Parameters format here: <a href="my.special.scheme://other/parameters/here"> Click to expand... , how can pass params here And finally how to catch the params from b4a apps. And how to deal with manifest, I mean direct xml editing or any way to b4a XML editor. An example will be helpful for me and other notice like me. Please help Last edited: Jul 26, 2013 Upvote 0
Erel said: You can use the solution described in the link you posted (the answer that received 214 points). You should call Activity.GetStartingIntent to get the intent that caused the activity to be resumed. Click to expand... I've posted here because I've failed to understand <data android:scheme="http" android:host="twitter.com"/> Click to expand... in here, I mean why twitter Code: Copy <intent-filter> <data android:scheme="http" android:host="twitter.com"/> <action android:name="android.intent.action.VIEW" /> </intent-filter> <data android:scheme="my.special.scheme" /> Click to expand... in here, what my.special.scheme is, how to use etc. Code: Copy <intent-filter> <data android:scheme="my.special.scheme" /> <action android:name="android.intent.action.VIEW" /> </intent-filter> Parameters format here: <a href="my.special.scheme://other/parameters/here"> Click to expand... , how can pass params here And finally how to catch the params from b4a apps. And how to deal with manifest, I mean direct xml editing or any way to b4a XML editor. An example will be helpful for me and other notice like me. Please help
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2013 #6 You can create a request for a full example in the wishlist forum. You should add the intent filter with the manifest editor: AddActivityText. The URL should be available with Activity.GetStartingIntent. Upvote 0
You can create a request for a full example in the wishlist forum. You should add the intent filter with the manifest editor: AddActivityText. The URL should be available with Activity.GetStartingIntent.