I am working in face book functionality in my apps. I have integrated the latest Face book-IOS-SDK. When runs the application, the application is started and runs in the safari browser. Now I want to load the application in the user view(FB web view) instead of Safari. How can I achieve this?
Facebook doesn't want you to. Facebook's new SDK wants the user to login into Facebook once, and than that Facebook login be used in every app on the device that uses Facebook. Because of the way the iPhone works, the way they had to do that was through safari so that each app could get that info. You can go back to the original way (which so far I personally prefer), but I'm not entirely sure how.
However, if you use the new way, it will automatically redirect the user back to your app once they finish authenticating it. Also in the Safari page they can give your app permissions, ie. post status updates.
Related
Im am trying to make my Xamarin iOS app use the native Facebook login but I get the browser instead of the native functionality.
I have: Url schemes, FacebookAppID, FacebookAppName in place in my info.plist
In my Facebook app I have added an iOS app and set the BundleId to my bundleId. Also I have set SingleSignon true (read that somewhere)
I have left the URL Scheme Suffix empty (don't know what to put there)
I have installed the FB app and logged in to this on the IPhone I am using but still the darn Webview is showing.
A login using the webview goes fine and if I quit the app and rerun the app the Xamarin Login button does say that I am logged in (displaying Logout)
Can anyone help?
Kind regards
Martin
Facebook has intentionally disabled switching to the native App, see blog post from late 2015: https://developers.facebook.com/blog/post/2015/10/29/Facebook-Login-iOS9
try this, it supports native fb login https://github.com/IdoTene/XamarinFormsNativeFacebook
I've created an IOS app as a Facebook Developer. So my question:
Are people able to see the app when they go into their Facebook - like in the Browser? Or are Facebook IOS apps only something that you can see in the actual app on the iphone/iPad that I'm creating?
Depending on whether the Facebook developer configured a canvas facing site will show what the end user will see.
Any application made by a third party once set to public in app settings can be viewed by anyone.
If you app is made for iOS then either the user will see a misconfigured webpage or dialog asking whether the user wants to send to mobile. All of this of course depends on how the the developer of the application sets everything.
See the documentation for detailed information
https://developers.facebook.com/docs/facebook-login/v2.2
I have integrated Facebook functionality into my applications. By using the link https://github.com/facebook/facebook-ios-sdk, I have integrated the Facebook. In this application, at the time of login, it's opening Safari and at the same time the application is going to the background and then after login again it's coming back to the application. My intention is that this flow can accept the application store or not.
This is the official Facebook iOS SDK and many apps in App Store already use it. So you can use it inside your app.
Also, the flow in your question is exactly what the documentation of the library describes and is, again, used by apps that are already in App Store:
If the device is running in a version of iOS that supports multitasking, but it doesn't have the Facebook app of version 3.2.3 or greater installed, the SDK will open the authorization dialog in Safari. After the user grants or revokes the authorization, Safari redirects back to the calling app. Similar to the Facebook app based authorization, this allows multiple apps to share the same Facebook user access_token through the Safari cookie.
So, yes, there is nothing wrong with this flow.
I'm developing a small app allowing users to upload their photos to flickr.
I have tried ObjectiveFlickr framework, but it is too buggy (can compile on device, but not on simulator) and not very convenient for users (user must leave the app, open Safari to go to flickr website to authenticate, then switch back to the app again)
I've seen apps like Hipstamatic doing a really good job on this, it doesn't need to open Safari, everything's done in the app.
Could anyone please suggest some ways to do that?
Thanks a lot
First, I have used ObjectiveFlickr without problems in the iOS Simulator.
Second, ObjectiveFlickr itself does not concern itself with the browser that is used for authentication. It just generates the URL you need to open to let the user authenticate your app. Whether you open this URL in Safari or in a web view inside your app is entirely your choice.
I'd like to build a mobile Web app that:
If my iPhone app is already installed, launches it by redirecting to a URL handled by the app
If my iPhone app is not installed, displays a web page encouraging users to download it from the App Store
The problem is, I don't know how to detect whether the app is installed before redirecting. Does anyone know a trick for doing this? Maybe a JavaScript hack of some sort, leveraging the App registered URL in an iframe or similar?
You very likely can't do this. Even in a native app, all you can call is UIApplication's canOpenURL: method, which just tells you if some app will open the URL, not which one. I have no idea if this function is exposed in JavaScript; very likely not (I wouldn't want malicious javascript probing my phone for which URLs it can open).