Share data on Weibo and QQ internation in iOS - ios

I am trying to share data on QQ internation and Weibo, but not getting such a good way to post data on this messengers, i tried a lot for sharing data on weibo and qq internation but not getting result.
guide me to correct way and which is the good way to share data on this both messegner.

You might want to look at the SDK's they offer. Third-party service providers encapsulate their services on platforms such as iPhone in special SDK (software development kit) so you can easily talk to their servers.
QQ iOS SDK
Weibo iOS SDK

Try MonkeyKing library.
MonkeyKing helps you post messages to Chinese Social Networks, without
their buggy SDKs.
MonkeyKing use the same analysis process of openshare, support share
Text, URL, Image, Audio, and Video to WeChat, QQ or Weibo. MonkeyKing
also can post message to Weibo by webpage. (Note that Auido and Video
are only specifically for WeChat or QQ)
One more thing: MonkeyKing supports OAuth.

Related

How to proceed with Twitter dropping support for the Twitter SDK?

Since Twitter announced that they will be discontinuing support for the Twitter SDK for iOS, Android and Unity (https://blog.twitter.com/developer/en_us/topics/tools/2018/discontinuing-support-for-twitter-kit-sdk.html), I am unsure of the best way to proceed with my application. I am specifically interested in options for iOS.
I am currently only using a subset of the full capabilities, primarily:
Authentication
Fetching tweets
Displaying tweets
For authentication, OAuthSwift looks to be a possible replacement.
https://github.com/OAuthSwift/OAuthSwift
For fetching tweets from the API, Swifter is a library that I have been using and could continue to use.
https://github.com/mattdonnelly/Swifter
However, I'm currently using the TWTRTweetView class of the Twitter SDK and am not aware of any other options to replace this.
Twitter seem to be suggesting to use web views to display tweets in apps but this option doesn't lend well to my use cases. I'm looking for a native solution.
Can anyone suggest any other alternatives or approaches to take in light of these developments?
As mentioned in the blog :
Documentation and source code for all three SDKs on GitHub will remain
available for consumption in an archived state.
Also,
You can fork the Twitter Kit project and build it into your app, or
copy the parts you need into your app. Or you can use Twitter’s
standard API to power your own native displays and login
functionality.

Share media directly with custom dialog on iOS

I have a kind of specific questions concerning the feasibility of sharing content (image, text, best with opengraph meta data) to specific apps or websites from my iOS App. Maybe someone has some experience with this and can help me out.
I want to share an image + text (best with opengraph meta data to link a given website) to Facebook and Whatsapp (maybe more messengers, social media platforms later on). For this I want to give the user a custom dialog with these two (or later more) options.
Now after doing some research on this topic I couldn't really find a way to do so without integrating the Facebook SDK or kind of abusing the Document Interaction API for Whatsapp. The only way seems to be using UIActivityViewController with excludedActivityTypes. openURL also doesn't seem to do the trick since it seems you cannot really share media.
Is there a way to share images to specific social media or messenger services without integrating SDKs and use a custom dialog for this?
Or do I have to use either SDKs or UIActivityViewController
And is there a possibility to use OpenGraph data alongside sharing media with the UIActivityViewController?
Thanks in advance!

How do I upload video in a tweet in an iOS app using XCode

I am new to iOS development and need to make a change to an iOS app I'm taking over to add video to a tweet. My current app UI allows the user to type in text for a tweet but I would be changing that to allow them to pick a video to upload along with the tweet similar to how the Twitter app works.
I see the Twitter API supports uploading video but I haven't been able to find any good examples on how to accomplish this using XCode and Objective-C. Any recommended approaches or tool kits I can leverage to accomplish this?
https://dev.twitter.com/rest/public/uploading-media
I had to roll my own solution. Check out my project https://github.com/mtrung/TwitterVideoUpload.
Light-weight due to using built-in Apple's Social framework to keep things light. No need to add extra frameworks such as TwitterKit and Fabric.
Support chunk upload.
Built-in support for user's credential retrieval
Thanks for the -1 that was helpful. So thought I found the answer with Fabric (https://get.fabric.io/). The Android side supports image and video upload with a tweet but the iOS side does not (image only). It looks like you have to roll your own solution including building a video picker. Then you can use the Twitter REST API to upload the video. Not exactly what I was hoping for but it is doable.
This link shows Objective C and Swift code to do the video upload Share video on Twitter with Fabric API without composer iOS.

How To Push Music Playable Data Streamed From Spotify To A Device That Does Not Use The SDK Provided By Spotify

I apologise for the possibility of the title of my question would lead to confusion of the problem. For that I will explain my purpose in detail.
We are currently developing our own wifi speaker which is built with MIPS. The speaker comes with an app that will be used to manage it. One of the features that would we would like to include in the app is accessing contents of Spotify and be able to play them on the speakers.
Unfortunately, after going through the iOS SDK Documentation, and did some tests on Web API Console provided by the official of Spotify, I noticed that Spotify does not allow developers to directly get URL of a song, except for preview purposes. I also wasn't able to find any way to get the data bytes of the music streamed from the server. Every content comes with a corresponding URI which is used for a request.
For the device(WiFi Speaker) part, we recently tried to contact Spotify and ask for an SDK that can be used for development. However, one problem is that Spotify told us that they have SDK for x86, and ARMs architecture only. They don't have MIPS.
Now, here are my questions:
Is there any way for me to push music from an app to the WiFi Speakers without having to use SDK (for backend device)?
If Spotify can provide an SDK for our device, then how can we integrate the SDK with our platform?
I'll explain my 2nd question for clarity. Like for instance, in Android and iOS, these are popular platforms and are widely used by mobile devices. So if they provide SDKs for the two OS, then they can use default system frameworks to access the player for playing the content. (In iOS, it's the AVFoundation Framework). However, if Spotify were able to provide the SDK that we need, how would we able to integrate that with our own platform?
I will answer your question no 1:
You should be able to push music from an app using a buffer that you can read from using Core Audio and also forward to a device of your choice. I think what you are looking for can be found at CocoaLibSpotify

Facebook iOS SDK vs Social framework

I want to write app that is heavily integrated with Facebook. I'm not sure what shoud I use - sdk provided by Facebook or new Social Framework provided by Apple. Do you know some pros and cons of them?
[EDIT]
I ended using Social Framework provided by Apple, because it's much easier to integrate, It will be develop in future, and I have access to device owner Facebook account, so user don't have to log in to Facebook when using my app. I want to do some custom stuff, so I get oauth token from ACAccountCredential and then I make requests with AFNetworing to Facebook's Graph API.
The Social Framework is designed for simple, site-neutral data manipulation. Examples might include getting the user's 'activity feed' (as described by the docs) or posting a new status or photo. It currently works with Twitter, Facebook and Weibo however, other than lack of features, the current main disadvantage is that it is limited to iOS 6, which won't be as much of a problem in the future.
On the other hand Facebook does have an iOS SDK that makes it reasonably easy to integrate Facebook into your app, and it is much more powerful than the Social Framework. Another benefit is that support goes back to iOS 4.3.
I'd recommend using the Facebook iOS SDK over writing your own custom one and using OAuth because Facebook has already done the work for you.
I've struggled with this decision for a long time and came to this conclusion. If your app doesn't care for iOS 5 and older phones, then the iOS Social framework is the way to go, as it allows the user to share with any of the popular social outlets (Facebook, Twitter, email, Weibo, SMS...) just like one can do in mobile safari. According to Apple, 89% of the iDevices are already on iOS 7. The percentage will be higher if you include iOS 6.

Resources