Where do I download FBProfileExpressionKit? - ios

I've read the docs here https://developers.facebook.com/docs/profile-expression-kit/ios/ several times, and I've downloaded the Facebook SDK from here https://developers.facebook.com/docs/ios/downloads. That download doesn't contain the needed FBProfileExpressionKit framework to integrate with the Profile Expression Kit SDK, and the site itself doesn't have a link to download it. Where the heck do I do download FBProfileExpressionKit from?

I searched but there is no option in FBProfileExpressionKit Documentation.
You can download FBProfileExpressionKit from here
You can upload photo and video as follow
[FBSDKProfileExpressionSharer uploadProfilePictureFromData:videoData metadata:nil];
[FBSDKProfileExpressionSharer uploadProfilePictureFromUIImage:uiimage metadata:nil];
More Info

Here's how I wound up doing it (I reverse engineered how the SDK embedded in another app was sending the message to Facebook's app): https://github.com/timonus/TJFacebookProfileExpression.

Related

How can i upload video to Twitter using IOS

I have a local video link, and i want when the user press the button -> show twitter app with my video and title there (without using UIActivityViewController), just by pressing the button
You have to choose which way you want to go to upload a video, i.e. post a tweet with just that title you've mentioned.
Option 1
Use the HTTP API and create a URLRequest that contains the video as 'attachment'. You have to handle authentication first or the request will most likely fail.
Option 2 (Not really an option anymore)
Another way would be the iOS SDK provided, as given in the other example here. Problem is: there is no longer an official Twitter SDK for iOS. You could try your luck with the archived OpenSource SDK but maintainability is pretty decent with this.

Is it possible to get files from Dropbox and Google Drive files application in IOS sdk

I'm developing an application in which the user can select his/her file from Dropbox or Google drive and download and share it to other users.
Can we check that is Google drive installed as we can check dropbox with help of below code :-
if ([[UIApplication sharedApplication] canOpenURL:[NSURL
URLWithString:#"dbapi-1://"]])
{}
Once we know that the Dropbox and Google drive is installed. Can we get the files/folder from the installed application or Is it the standard process to check and then the dropbox list of files and display it manually with help of below code.
if (![[DBSession sharedSession] isLinked]){
[[DBSession sharedSession] linkFromController:self];
}
Thanks in advance
As Paulw11 commented, if UIDocumentMenuViewController suits your needs, you can certainly use that.
Alternatively, Dropbox also offers an API you can use to integrate Dropbox functionality into your app. For Objective-C on iOS, you should use the Dropbox API v2 Objective-C SDK.
There are instructions for getting started with that, as well as samples for listing files and folders, etc..
(Note that the code from your question is for the deprecated Dropbox API v1 iOS SDK. That should no longer be used since API v1 is being retired later this year.)

Swift - NSURLSession downloading in background?

I'm creating an iOS app by swift that is as same as the AliExpress iOS app.
This App has ability that connect to our site and download all of data from JSON api online.
Now, I wanna download the images of the icons and banner slider from our site by JSON api in main page. But I don't know how i can do it. Do I use queues or background functions like in android? Also, I'm an android developer and i know how i can do this in android. You can guide me by this way ,too. please guide me by sample codes or description of its logic.
Please refer following link for tutorial
http://www.raywenderlich.com/51127/nsurlsession-tutorial
Apple documentation can be found on following link
https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSURLSession_class/
Swift example can be found here
http://jamesonquave.com/blog/making-a-post-request-in-swift/
I have also created a demo for the same
https://github.com/Gagan5278/SessionDownload
Let me know if you want more on this.
You have the seed of your answer in the title of your question. You want to create an NSURLSession and add NSURLDownloadTasks to it. That class does all the work for you.
A quick search on Github reveals this repository that claims to offer an async download queue in Swift:
https://github.com/Gurpartap/Cheapjack
(I haven't used that one. You can either build it into your project or look at the code and use it to implement your own download sessions.)
There is also AlamoFire, another swift library that has built-in JSON support.

Link to open up iOS app from facebook and twitter page and other ios app?

Hi I have a requirement in my app. From my ios Application(myapp),i share a link to facebook. Then I opened up my facebook account in browser or Facebook application and clicked the link, link should open in myapp if myapp is installed in the device otherwise link should open in browser. How can I achieve this ? Please suggest me step by step. Thanks in advance for your consideration and help.
I am not sure if this is possible. I have looked at various questions including
Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?
as I am sure you might have already done but these questions target their own app, mainly web app, but you want that behavior to occur from an app that is not yours like twitter or facebook. But what you can do is show them two links on facebook/twitter, if they have installed press link 1 and if they want to install, press link 2 and you can pass parameters in link 1 as you might already know.
I will also keep checking answer of this question if some one comes and gives a better solution.
There is an option called custom URL scheme in iOS. It will help you to create a URL scheme which identifies your application. You can post link with this URL scheme and when you tap on this link on your iOS device it will open up your mobile app. Please see the link below to know how to setup this.
Custom URL Scheme in iOS
This is called 'deep URL linking'. Facebook have built a service called 'App Links', which seems pretty cool.
https://developers.facebook.com/docs/ios/app-links

Fetch images from Instagram in iOS

I wish to fetch images from Instagram into iOS app. For this I am using Instagram API. I have set clientID and redirect-uri as shown in http://kmdarshan.wordpress.com/2013/02/23/integrating-instagram-sdk-in-your-ios-apps/ and http://instagram.com/developer/
Code used is given in link above. But in the line:
if ([[UrlParts objectAtIndex:(1)] isEqualToString:#"NeverGonnaFindMe"]) {...
the string always equals to oauth.
Where am I getting wrong? Anyone having any other option to integrate instagram images into iOS apps, please let me know.
I just found a project to fetch instagram images into ios app on:
https://github.com/hsandhu/HSInstagram
Awesome application, saved my time.
you can try this framework to show the instagram feed, both user and tags
https://www.cocoacontrols.com/controls/sbinstagram-viewer
is more complete and is easy to integrate
regards

Resources