Prevent iOS native login using Facebook SDK 3.1 - ios

I am looking for a way to prevent the native Facebook iOS 6.0 login using Facebook SDK 3.1. I ask this because I would like to request read and publish permissions on login. Using the native login only allows you to request read permission.

I have found a fix for this. To request read and publish permissions on Login, thus preventing the native dialog use the deprecated method, openActiveSessionWithPermissions.

Related

Is it possible to integrate the Facebook login without using the iOS SDK?

Currently i am using the Facebook SDK to implement the Facebook login to our native iOS application. For this i am using the native iOS SDK for Facebook. This application is both for mobile and web, so is it possible to integrate Facebook login without using the SDK from application side. I mean authentication done fully through API and server side.
Please have a suggestion.
I referred to a SO link:
Design for Facebook authentication in an iOS app that also accesses a secured web service
Sure! You can always use their API directly, which essentially is the same as they do with the SDK.
Check out the documentation on the following link.
https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow

Integrate facebook account with user account in my iOS application

I'm using Facebook iOS SDK 4.0 in my iOS application. I want to integrate Facebook accounts with the user profile of my application. It is used for sharing purpose and I want the integration to be maintained for the user across multiple devices. As remote token cache was deprecated in Facebook iOS SDK 4.4, is it safe that I save the Facebook access token to my server directly through a web service? Is there any method I should follow in saving so? It would be very helpful if you provide some sample code.

Gmail API 0Auth 2.0 using OAuth Phonegap SDK

Has anyone had success in using the Gmail API's authorization in a Phonegap application? I found this (http://phonegap-tips.com/articles/google-api-oauth-with-phonegaps-inappbrowser.html) that describes using the generic Google API OAuth with Phonegap's inappbrowser plugin, but the newly released Gmail API does OAuth authorization differently, and I'm not sure how to get it to work with Phonegap.
Note: It does work when I try a web version of my app, but the button that brings up the authorization screen doesn't do anything in Phonegap..not sure why. I do have the appropriate Android credentials for the app in the Google Developer's Console.
UPDATE: Using OAuth's Phonegap SDK (found after registering your app here: https://oauth.io/), I am able to authenticate a Google Account. However, I am unsure how to then call Gmail API methods or correctly pass whatever authentication tokens from the OAuth SDK to any Gmail API code. Has anyone done this and can share their knowledge?
I found a solution using the OAuthio Phonegap SDK. Then I can call the appropriate HTTPS requests from the Gmail API.
If you want to login your users via Google on iOS and Android, then use this new plugin I just created: https://github.com/EddyVerbruggen/cordova-plugin-googleplus
You will also receive the name and gender etc from the plugin. The plugin will also try SSO with any other Google apps installed on your device by using the Google+ SDK on both platforms.

iOS Facebook SDK: which login system is better?

I am developing a iOS application which allows users to login by using their Facebook account.
I managed to implement the login procedure thanks to official tutorial I found here https://github.com/facebook/facebook-ios-sdk. I found here https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/authenticate/ another tutorial which looks pretty different since in the first tutorial the user signs in through Safari, instead in the second tutorial the native Facebook App is used.
Among these two systems, which one is better? Perhaps by using Safari I could avoid any issue concerning back compatibility with older versions of iOS?
Thanks!
If you're using the official Facebook SDK, here's what happens:
If a user does have the Facebook app installed, they'll be taken to it to authenticate and login to your app.
If the user does not have the Facebook app installed, they'll be taken to Safari to authenticate and login to your app.
Either way, the login process is the same. After they authenticate, they're returned to your app using a specific URL scheme so that you can continue with what you're doing.
Finally, if you're targeting iOS 6 only, you can take advantage of the single sign on features built into iOS. Check the docs for more information on that.

Login to Facebook comments using embedded UIWebView through Facebook SSO

Is there any method to login facebook comments embbedded in UIWebView using SSO?
In my case ,I am developing website and native ios app.
so I should embbed page like below link in my native app.
http://techcrunch.com/2012/09/19/facebook-contact-sync/
this page is using facebook comments.
If I ask users one more login, this problem can be solved.
But I want to login through facebook SSO.(Don't want to ask one more user's id and password)
Facebook-ios-sdk with embedded UIWebView
this link showing me how to login my comments box in UIWebView using ios SDK...
is Answer at this link possible?
Get Access token using iOS facebook SDK,
and passing this token to java script at page to authentication user at comments box.
If it is possible, How to pass access token that acquired from ios SDK to java script SDK ?
or Does there exist another method?
I think easiest way to implement this is make session cookies for webview using access token.
but people saying this is impossible.
Loading iPhone webviews as an Facebook SSO authenticated user?
is it still impossible at new version of SDK?
Thanks in advance!

Resources