This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Paypal using Webview
So I have implemented android app with paypal MPL integration. App is cool and everything works fine.
I go to my client.
He says ..
"but why it doesnt go to browser? .. I dont trust this paypal popup!
I only make payments if a page redirects me to browser and i can see paypal.com in url..
only then I will type in my data, only then i trust it."
So how I can achieve that?
I was reading about MEPL, but it seems that I would need to implement a webview in my app, am I right?
I know it is possible. Since Facebook is doing something like that if fb app is not present on the phone.
thanks!
As mentioned in the comments,
this question answers the same issue
Paypal using Webview
Yes you are right. MECL is use WEB VIEW. But if you want to pay through MECL then you have to Create a web-service for payment. and just read the doc of mecl paypal and try to understand flow.
but MECL w/ webviews is not going to help with " I only make payments if a page redirects me to browser and i can see paypal.com in url." since webview doesn't display the url to the user.
So what you need to do is just directly integrate with PayPal Express Checkout (you would need a server side component for this) and launch the browser directly with the express checkout url. Make sure you add code in your returnUrl to re-launch your app after the user is redirected back to your server in the browser.
As mentioned in the comments,
this question answers the same issue
Paypal using Webview
Related
I would like to embed a business Facebook page on my application. I tried to find information, but there's nothing. I don't know if I should use the SDK or graph API and how I should use it. I found a post here some years ago, but no one answered. Can you please help, at least give me some directions?
Thanks!
SOLUTION:
It uses the webview with setWebViewClient, otherwise, it redirects to the browser. But the important thing I was missing is that the Facebook page has to be PUBLIC.
It's my first posting on here (although I've been using this site for reference for quite some time).
I've been trying for several days now to find or dream up a way to use Facebook's "Single Sign On" from within a mobile web app (not a native iOS or Android app) to automatically sign a user into a web app if they are already logged into Facebook from the native Facebook app on their mobile device for example.
My limited knowledge is telling me that it can't be done since the mobile browser and the 'system' (iOS for example) are too separated (I can't, I don't think, have my mobile web app use or access the native Facebook app on a mobile device in any way).
I have found and read the iOS, Android AND Mobile documentation provided by Facebook (https://developers.facebook.com/docs/guides/mobile/) which all seems to make enough sense, but after days of trawling through everything else I could find on the subject there doesn't seem to be a way to use, for example, the Facebook app on an iPhone or Android device to automatically log a user in to my web app if he/she is already logged into Facebook.
I've read lots about doing this from within 3rd party native apps and also other people trying to achieve a similar thing from within Desktop apps but I'm trying and hoping to be able to achieve this from a web app running within a mobile web browser.
I'd be very grateful for any help, opinions or pointers in the right direction since I think this would be an excellent step forward in UI for mobile web apps to have (not just the native apps).
Many thanks in advance...
Probably a bit late to the party but in case anyone else is wondering yes it's possible with Cordova/Phonegap and the Facebook Connect Plugin: https://github.com/davejohnson/phonegap-plugin-facebook-connect/
Using the FB.getLoginStatus() method at startup allows to check if the user is already signed in with the native Facebook App and retrieve its profile. More details in the examples provided in the repo.
I have not yet implemented it myself, but seems possible according to:
http://developers.facebook.com/docs/mobile/web/build/#login
While using the Facebook SDK for Android, I realise Facebook uses their own dialogs with forms so the user can enter their information.
Is there a way to use my own forms and send the data to Facebook to authenticate? Or do I have to use theirs? If so, is that the same case for uploading pictures, posting on your wall, comment, etc.
I'm not sure about uploading pictures, but I ran into the same problem some time before with the forms and after a lot of research reached the conclusion that you have to use their forms. The only application AFAIK that uses custom Facebook login on Android is Facebook for Android (official application).
You might be able to figure out a way by tracing the URL that is being used by Facebook for authentication, but those sorts of hacks won't be reliable as Facebook may change the API on you. It sucks, yeah.
Here is some more information, Stack Overflow question Android -> Facebook login without a dialog?.
I'm trying to redirect user to specific web page after log in. I'm using Android Facebook SDK. Full internet of examples how to post on user's wall, but I couldn't find any examples or advices how to redirect for example to my app fan page. I have analyzed SDK code - Facebook.java, I saw that they're using redirect_uri parameter, so I've tried to write this parameter myself, but I got only API error code (given URL is not allowed by the App configuration) or page not found message. Maybe I can't do it by using Android Facebook SDK and I need to use different tools, api? Any advice will be appreciated.
Thanks in advance.
I don't know if you still have this problem now.
I'm not sure also if i understood your problem fully, but if you had the same problem that led me to this page (I wanted my android-application to call the browser at a specific page) this code will do the job.
PeladroidLiteActivity.this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.peladroid.com")));
I'm learning Android and I'm trying to connect to Twitter and upload a photo in Android. How can I do this?
This question gives you a hint on how to use an Intent to start a Twitter application and use it to to post something. In this way the user don't have to give your program the twitter credentials.
If you want to connect to twitter yourself you can use one of the java twitter apis that are out there.
I hope this is a starting point. If you encounter more specific problems come back and we will be glad to answer them.
For a general howto on Android check out the hello world application and all the other tutorials on the android developer pages.