A working MGTwitterEngine iPhone example project - iphone

I'm trying to find a working version of the an up-to-date MGTwitterEngine iPhone project. The example app included with MGTwitterEngine is a Mac app which I can't get to compile, apparently due to multiple missing dependencies. (each time I try to resolve a compile error I just get even more errors...)
Is there a working example out there? Just a shell which lets you log in to twitter. (and which uses oauth, not xauth - which is deprecated).

The original source code is located on github. It looks like the last time it was updated was in September of 2010. I am not aware of any other updates as of recently. The original source is probably going to be your best choice.
Alternatively, there are many other Twitter libraries you can use.
Twitter+OAuth

Related

Pythonista URL Scraper on iOS

I’ve been attempting to compile a script to give me table data from a few xpaths from https://www.worldometers.info/coronavirus/ to display info from just 4 of the hundreds of datasets.
The issue I’ve run into after playing around with various scripts for hours and hours and doing web searches is that pythonista iOS won’t allow me to utilize pandas, beautiful soup, pyto, or a host of other parsers.
I’m admittedly a noob but it seems like using the basic installed libraries for python 2.7 or 3.2 should be able to simply display Xpath data with a few lines of code with which I will eventually migrate some premade code in iOS shortcuts app to make it a widget for my Apple Watch and/or iPhone.
All this to say... has anyone had success scraping using iOS Pythonista app? If so, any pointers for an angle of attack??
Pythonista is limited by the fact that you must use pure python libraries. This is no fault of the developer and is a restriction set by Apple. I recommend installing StaSh and finding a pure python scraping library that you can install through pip. A quick google search brought up this one which you might find useful.
As of December 2020, Pythonista has the requests and bs4 modules built in.

Uber universal links not working reliably

Edit: Turns out the Uber app was botched - see answer below. Leaving this post as a reference for others.
I noticed that universal links I'm generating don't work reliably - I first thought it was only Android, but I'm also seeing this on iOS now.
Links like this one below just open in the browser when triggering the URL to be processed by the system (I removed the detstination and formatted addresses to get a minimal link, but it's still not working):
https://m.uber.com/ul/?action=setPickup&client_id=MY-CLIENT-ID&pickup[latitude]=47.5045573061129&pickup[longitude]=8.71492590755224
This is a Xamarin app, I'm just using the built-in Device.OpenUri(uri) method, which translates into a native call. That used to work in the past...
Turns out my Uber install got botched. I uninstalled and reinstalled Uber, and now the links are working again. Weird, but I'll just pretend that didn't happen ;)

phonegap 2.2 and facebook integration

I have been recently begin working with phonegap and I notice that there is no tutorial for phonegap 2.2, the most recent version. What's more, since phonegap 2.0 there has apparently been drastic changes. I am having lots of trouble with using phonegap since I am new to web-iphone apps.
I am trying to make an application with phonegap to use facebook log in to get your data (pics, friends, etc) and then post on your facebook page, update status, etc. Basically a social App.
It seems that no tutorial is clear on any facebook-phonegap integration and social web based app.
I have seen a video with phonegap 1.8 tutorial and have followed it very close, only to get many errors.
I followed the one on:
https://github.com/davejohnson/phonegap-plugin-facebook-connect
and have had protocol.
I have tried many different things, but it seems that xcode simply is not able to recognize some functions or protocols. I am looking to see if I missed anything, but Ive added everything according to steps followed.
Ive tried adding the facebook.Framework, the extra headers, heck, Ive even added all of the files from the facebook SDK in the src file of the package:
https://github.com/facebook/facebook-ios-sdk
I cant seem to put together a simple facebook log in app...
anyone got it to work? what are the exact steps to follow? Im good with a new 2.2 cordova project and up until I put the files: FacebookCOnnectPlugin.h and .m that is where everything gets messed up.
I DO have the libsqlite3.0.dylib and HAVE followed the steps, added all the stuff in various .plist and all these weird long and annoying procedures many times...
Ive tried adding various libraries and just can't come up with anything else so why can't I just start a simple cordova project and get the option to log-in connect fb. like a simple hackbook sample.... I get it working in Objective-c demo (new single view application project)... Why does everything have to be so difficult and not working. I just want to get a page to start coding at. Just to get to this point, not even starting is so difficult.
very frustrating....
any help is much appreciated.
-- Im new to web apps and iphone...
I got it working but there are lots of issues and tweaks you need to do in order for it to fully work.
In my experience PhoneGap Plugins do work but you have to play around a lot. E.g. I know for sure the new Facebook SDK is not supported by the PhoneGap plugin. Even if you import the Deprecated Headers. I had to use the older version of the SDK. And also with version 2.7 not all plugins are supported so I had to stick to an older version 2.5 so I could get my project to work.
Even tough I got this plugin to work on iOS, it doesn't work on Android. It's a really good platform to develop on if you're looking for fast productivity but i'm still a bit spectacle on being heavily dependant on the plugins which are not being maintained continuously.
Hope this helps.

is there any single library for twitter sharing in ios4 and ios 5

I need to share one video url getting from my server in twitter.
And my app must be compatible for both ios 4.0 and ios 5.0.
I know that there is twitter+oauth library for ios 4.0 and twitter inbuilt library for ios 5.0. And my functionality is twitter library need to ask user credentials only once for twitter authentication and need to post that video url in background with out asking user permission.
From the second time onwards video must posted in background.
As per my knowledge we have different libraries we need to use but is there any solution that do implemant my task with one library.
Please help me.
For a beautiful implementation, check out DETweetComposeViewController.
It will provide you with a UI that looks almost identical to what iOS5 users now are growing accustomed to. The great point is, it works on iOS4 and iOS5 flawlessly.
GetShareKit was a basic library created by Nate Weiner that's now outdated. If you check it's GitHub source, the last commit was sometime in 2010. This version is buggy and has about 20+ compile warnings. this uses an older version of the Facebook and Twitter sharing mechanisms that are now deprecated and also, buggy. Clicking Twitter's "Share", for eg, won't dismiss the sharing dialog.
So, a bunch of developers forked off the original library and now maintain what's called ShareKit 2.0 SDK. If you check the wiki, you'll learn that all new services like Foursquare, LinkedIn, InstaPaper, EverNote have been added to this new version. Happy Coding!

What are established Twitter Libraries for iOS (iPhone & iPad)?

I used to use MGTwitterEngine as my main twitter library for iOS, however, the last commit to the project's master branch is more than one year old (at the time of this writing) and the documentation is not that great. Now I am starting a new project and would like to get rid of the "clunky" MGTwitterEngine, what are other twitter libraries out there for iOS? Which are your favorites and why?
I found the following so far:
MPOAuth
ShareKit (provides a lot more than just Twitter sharing)
Apple announced in the WWDC keynote that Twitter access will be built into the OS in iOS 5, so assuming that means built-in API access its likely that all third-party Twitter libraries are being left to wither. Those who develop for iOS have access to the beta APIs, so even though we can't say anything for sure about future API releases, they could (NDA notwithstanding).
That being said, I'd add DDSocialClient to the list. Like ShareKit it does a whole lot more than Twitter, but it's much less prescriptive on user interface. It restricts itself mostly to the nuts and bolts of the service integration. Whether you think that's liberating or just more work is probably a judgment call.
iOS5 is coming out soon but i'm using MGTwitterEngine and it works like a charm. http://mattgemmell.com/2008/02/22/mgtwitterengine-twitter-from-cocoa
Also you can try sharekit but I dont like it as much.