How to get facebook user information in API version 2.6 in ios? - ios

Is it possible to change the Facebook API version from 2.6 to 2.2 in iOS. I am not able to get all user information in version 2.6. I used current SDK version and also FacebookSDKs-iOS-20150813. Both SDKs are not giving me user information excluding id and username.

You can´t downgrade an App to a lower App, you can only upgrade it to a newer one. Downgrading would not make any sense anyway, it´s better not to use stuff that is deprecated.
Upgrade Tool: https://developers.facebook.com/tools/api_versioning/
You do not neet to downgrade anyway, you only need to use the fields parameter: /me?fields=name,first_name,...
It´s called "Declarative Fields" and came with v2.4 of the Graph API: https://developers.facebook.com/docs/apps/changelog#v2_4

Related

Iversion equivalent for titanium

I need a way to check the app store for the latest update of the app.
One way of doing this is to make an api call to see what the latest version is and force the user to download it. However this is reliant on an internet connection; a better way is to sync the app with the app store. There is a native module called iversion, does anyone know of a titanium equivalent.
https://github.com/nicklockwood/iVersion
Inspired by Harpy project the benCoding.iOS.Tools module allows you to query the AppStore and return the latest version. Check README for further details.

How to cancel AWS 1.4.6 AmazonServiceRequest in iOS

I have an async upload process working with Amazon S3 but I am having trouble when I try to cancel it.
I'm trying to call cancel on the request but I get an unrecognised selector crash. I think this is due to the cancel method not existing in the 1.4.6 version of the AWS iOS SDK but I could be wrong, I know it definitely exists in 1.6 but unfortunately I cannot use the latest version.
Is there a different way to cancel a request in 1.4.6?
Thanks
I am one of the maintainers of the AWS SDK for iOS. The cancel method has been available on AmazonServiceRequest since version 1.4.4 as seen in GitHub. You may want to verify that you don't have an older version of the SDK in your Framework search path. You can verify the version of the SDK you are using with the code metioned on the AWS Mobile Developer Blog.
Can you let us know why you are unable to use the latest version of the SDK? Is there something we can change to help make it possible for you to upgrade?

How long can we use DeprecatedHeaders in Facebook SDK 3.1?

I need to send an invitation from my iOS app to friends. I know that I can do it with "apprequests" and dialog, but this option is good only when we use "DeprecatedHeaders".
How long can we use DeprecatedHeaders in Facebook API? Are they going to support it in the future?
Is there any option to send invitation to friends from iOS app?
I prefer using SDK 3.1 than older one.
Version 3.2 of the Facebook SDK was released on 2/24 and this addresses the deprecated issue.
See: https://developers.facebook.com/ios/features/whats-new-ios-sdk-3.2/
And the upgrade guide if you need it: https://developers.facebook.com/docs/tutorial/iossdk/upgrading-from-3.1-to-3.2/

How do I check the version of the AWS SDK for iOS framework?

I don't see it in any of the header files within AWSiOSSDK.framework. I'm looking for the version format used here (eg. Version 1.4.4):
http://aws.amazon.com/releasenotes/iOS
This topic has been covered in a recent blog post, see Getting Metadata about the AWS Mobile SDKs:
The AWS Mobile SDKs provide functionality to capture details about the
environment in which the SDK is executing. These details include SDK
version, mobile platform, and platform locale. This information can be
useful for diagnosing issues and to help understanding exactly what
you are testing/running against.
Please check the post for details and examples, e.g. in order to to capture the metadata in the debug log of an application using the AWS SDK for iOS you apparently just need to include the following line of code:
NSLog( #"SDK Details: %#", [AmazonSDKUtil userAgentString] );

Facebook iOS SDK & backwards compatibility

I'm trying to wrap my head around this and figure out what would be the best approach:
I want to take advantage of all the new features that iOS 6.0 introduced in terms of interacting with facebook - this includes the built-in social framework that allows fast facebook SSO and native post dialogs. This is done fairly easily using the new Facebook iOS SDK v3.1.1.
The problem is that I also want my applications to be available for any non-iOS 6.0 adopters. This made me face a very ugly situation in which I need to create an elaborate social wrapper that would have to be compiled differently (with different FB SDKs) and to run separate code in order to support earlier iOS versions. Because a lot of the Facebook SDK already includes fallbacks and handles a lot of old, deprecated calls to the feed and dialog APIs, I figured that there must be a better way, while taking this in account, to create such a social wrapper.
I guess what I'm asking for here is any clue as to where to proceed from here. If anyone has ever tackled this issue (even in earlier versions of the SDK) I would be glad to know.
Thanks in advance
Weak linking is definitely the way to go here.
The 3.1.1 SDK can handle running on either iOS 5 or iOS 6, all you need to do is weak link the relevant frameworks in your build settings, and change the deployment traget to 5.0 (leaving the base sdk as 6.0).
Of course, you still need to handle the case when the native post dialog isn't available (You can use FBNAtiveDialogs' canPresentShareDialogWithSession: method) and use the SDK dialog instead.

Resources