Does Sharekit still work? - iphone

When I try and use Facebook with Sharekit, it pops up the login dialog, I fill in my credentials and then it just disapears (it does this in the sample project as well) Am I doing something wrong? Or is Sharekit just defunked? If so, any viable alternatives?

Yes it does. And it gets better - there is a new repo on github, which aims to bring it alive again, from the flood of various forks.

I'm using ShareKit on a current project. The Facebook integration performs this way sometimes, but I don't think it has anything to do with the library. Remember that the Facebook dialog is hosted by Facebook. It may have to do with a temporary hiccup on their end.

Sharekit still works. I love it and it saved me a ton of time. It absolutely works.

I have experienced this issue as well.
There is a bug with the sharekit when the user signing in has already authorized your app to access their facebook account.
If I go into facebook -> account settings -> apps and remove my app from the list of apps. I do not experience this bug the very next time I have to sign in to facebook through the sharekit.
I am working on a solution, as long as time permits!

Related

What's the correct way to authorize PhoneGap application to the Facebook?

I spent a while already to fix annoying issue with Facebook in PhoneGap app. And still a lot of things goes wrong with that. The thing is that I use Appery.io and Facebook plugin.
This is how my Facebook console looks now:
I suggest that localhost might be a reason of the issue. However, I got it into Facebook_Helper.js:
Everytime I try to sign in with FB account, I get the same error at the child window:
So what I've got is that app is authorized at this moment indeed, because there's a menu button at the navbar that allows me to navigate through FB profile:
The first issue lies in that the child window never gets closed automatically once user submitted Sign In form. And the second one is that I can't get the access token to the app directly. I know I'm doing something wrong, but I spend more than a week on that and nothing was clarified.
Honestly, I've no idea why it's not working. I saw a lot of apps written in PhoneGap that use the same authorization too, and they work as it should. Will be appreciate if you take a look into that and, maybe, advice something.
First, I don't see iOS or Android in your developer.facebook screenshot.
Second, you should implement native facebook integration if you are developing an app, if I understand correctly from your code, you are trying to handle only web browser version of authentication. Native integration is both the suggested way by facebook and platforms and better experience for end users. If users have facebook app installed, authenticating over fb app is more secure after all..
You can use a cordova plugin for facebook integration, here is one of the plugins (I am one of the authors): cordova-facebook plugin

Facebook Photo Upload iPhone Integration Issue

I am using FacebookAgent by Amanapps. It is a nice little wrapper for Facebook integration in iPhone apps. So far everything is peachy. But I noticed that when I upload a photo to my account, Facebook does not automatically publish it to the wall, instead Facebook puts it on hold and I need to goto See All Photos and approve them first.
Is there any way I can bypass this "approval" method. I feel it is ridiculous since upon logging in, the user has already give consent to the "app" to post the photo.
Thanks in advance for any insights.
Ok, anyway, I had to move away from FacebookAgent since in latest FB SDK, FacebookAgent is no longer updated. I ended up coding my own Facebook usage in the app using latest SDK with SSO. I even wrote a tutorial for it, for those who'd like to know how to do it please visit: http://xcodenoobies.blogspot.com/2012/09/how-to-upload-photo-and-update-status.html
Thanks.

Facebook Twitter Sharing options in app?

I want to give sharing option in my app for sharing data, images, webpages, etc. with Facebook, Twitter, Email. What is best option for me?
I'm going through ShareKit that I have never used. Is it any good or do I have to try something else?
Suggest me some ShareKit like links.
ShareKit is brilliant.
Recently there's been an intermittent problem with Facebook's "Connect" API, which is what ShareKit uses. A lot of existing, deployed apps (including some big names) have been facebook-broken over the last couple weeks. Facebook claims to be working on it, and in fact my app that uses ShareKit IS working right now, but ultimately SK needs to move to the newer Graph API.
Definitely Sharekit is good idea to share data,urls and images(not to twitter) with Facebook,twitter and Email but you can't share images in Twitter.

Twitter OAuth Login Page on the iPhone

I have Twitter integrated into my application, with the help of Sharekit. Everything works pretty well except, if the user happens to tap on the "Sign Up" link on the Login/allow page, it goes to a non-sign up error page. Either a "Sorry that page doesn't exist" or "Hold up! Sorry the profile you were trying to view was suspended due to strange activity."
The account I'm using is working as far as logging in, posting etc. But that link seems to go off into space. Also if I click on the "Twitter Gear"/Application Icon the dialog (web view with the Twitter OAuth Authorize page loaded) just closes.
I can't find anything about how to configure stuff like this and everything else seemed to work pretty easily. The closest reference I could find was,this link Twitter API Issue 1045
Thanks in Advance for any help
Update:
I've been checking a few other apps with Twitter support. Most of the ones I've checked (TUAW,Joystiq,TFLN) seem to have rolled their own Twitter Login Page (using XAuth I assume) the one I found that uses the Twitter OAuth page (Shazam) actually takes you to mobile Safari and it exhibits the same behavior. Maybe I need to roll my own login?
I suggest you go into the ShareKit class files, go to the two .m files that have "twitter authorization" (im not sure which of the two it is, a simple search on xcode should find it) and change the invalid url that it is being sent to to this URL: https://mobile.twitter.com/signup
That should fix your problem!
I suggest using a packet sniffer on your device to determine the exact URL being called when you click the "Sign Up" link. There are plenty of ways to do this, but it is easier on jailbroken phones. Armed with the URL, you can see if it is potentially something you are doing wrong or indeed a twitter bug.
Try Jan Rain it makes it easy to integrate this functionality without errors.
http://www.janrain.com/products/engage/mobile
Here is a ShareKit folk I am using: https://github.com/baotuo/ShareKit
It looks do not have your issues and have much more improvement. You should give it a try.
When you implement twitter integration, you should not use the library which you used in older projects but download new twitter library. I had some problems with twitter oauth when I used older library. But after download and use new library, the issue was fixed.

How can I add a link to an iPhone native app from website IF POSSIBLE

I have a link to a Facebook page from a website. I know I can use the URL scheme href="fb://" to open up the Facebook application from within an iPhone, but if the iPhone user does not have the native application installed, an ugly error message pops up. I would rather just send this user to the Facebook website.
There's gotta be a way to do this, but everything I've tried has had some short-coming:
Can't make a HEAD request to a different server
Can't run a try catch javascript function since the event leaves the client page
Can't seem to access information about the user's applications... or can I? I've read a bit about a cookie called "appInstalled" but can't find any real documentation about it.
Any ideas out there? Thanks a ton in advance.
Denis
Can a website determine if a device [iPhone] has certain applications installed ? I'm pretty sure that's a big NO because of privacy and security concerns.
Not a really technical answer, but you could change the user interface to give the user an option. For example, having:
Click here if you have the facebook application installed on your iPhone.
If you do not, click here to go through to the site.
Sorry that I cannot offer a "proper" solution, I'm not really that familiar with iPhone development.