Is it possible for a new Facebook application to use the legacy Javascript SDK? - facebook

Due to reasons out of my control I'm forced to use the legacy Facebook Javascript SDK on a new application. My question is. Is this possible? Des Facebook allows you to use the old legacy SDK on new applications? Or is it deprecated already and cannot be used on new applications?

Facebook is moving to OAuth 2.0. All apps are required to migrate over by October 1st. This means the old school Facebook JavaScript SDK is going to be phased out as it does not support this. I'm not sure if the old JavaScript library will stop working at that time, but I would definitely migrate to the newer SDK.
http://developers.facebook.com/blog/post/497/

Yes you can still use it. Its still even documented. Just reference it here:
http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php You obviously run the risk that they will eventually disable it but it is used all over the Internet so they are not likely to permanently kill it anytime soon.

Related

Is using FB JavaScript SDK the most reliable option?

We use FB JavaScript SDK and we're loading it asynchronously, according to their docs:
https://developers.facebook.com/docs/reference/javascript/
We use it to handle the login and for some basic calls to their API (mostly to publish stories and share links):
https://developers.facebook.com/docs/reference/javascript/FB.login/
https://developers.facebook.com/docs/reference/javascript/FB.api/
Since we started using it, we have experienced different issues on some browsers and devices.
As an example, yesterday we experienced problems trying to post on the user's feed from an iOS device (FB.api('/me/feed', 'post'...)), this problem lasted several hours. Earlier, we experienced problems in other platforms such as IE.
It seems like FaceBook pushes changes to their SDK without testing properly on a wide range of devices.
My questions (not easy questions, I believe):
Have you experienced similar problems. Do you think it is reliable?
Is there any realistic alternative to it?
I've always used the JavaScript SDK and it's been fine. Sure, there are issues from time to time, but that's part of being a Facebook developer.
The only alternative I can think of would be the PHP SDK. Both should be equally reliable.

Detect which version of an app is installed in iOS?

I understand it's possible to Detecting programmatically whether an app is installed on iPhone . I'm wondering if it's possible to detect what version of the other app is installed?
My app has a dependency on the Facebook native client, but behaves pretty badly if the phone has an older version of the Facebook app installed. So I'd like to be able to detect that and warn users.
-- UPDATE --
It's being implied in the comments that I can prevent users from installing my app in the first place if the appropriate version of the dependent app is not present. That would be a great solution too. If you know how I can specify a dependency on another app's version number, please explain that.
Unfortunately, you can not read your iOS device settings programmatically to get the native app Facebook version (i.e. via Settings, Facebook, Version).
Nevertheless, you might try to experiment with the custom URL schemes for Facebook as you noted in your own question.
It seems the different versions of the native Facebook application either support/does not support its own custom URL schemes.
As noted here from version 3.4, you can:
fb://places
From version 4.0, as noted here, you can:
fb://place/(fbid)
etc.

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!

.NET Facebook API

I'm new in Facebook API's, so I have a question cause I'm in seriously trouble with API's and Facebook's security politics!
I'm developing a WinForm socket application and needing Facebook integration for add a event to user's wall and I must use .NET 2.0
When I'm googling, I've found many sdk (for example; Facebook C# SDK -this one supports only 3.5 and 4.0-, Facebook.NET -this one supports 2.0 but it isn't working-, Microsoft Facebook Development Toolkit, etc.) but there are no working one with .NET 2.0, cause Facebook's security protocols perpetually changing.
Can anybody advice me a sdk or way for this scenario?
PS: Sorry for my English, I'm not native speaker though I've deal as possible as clearly.
Thank you in advance,
Luindale Ainion.
I'm afraid (due to the fact that 3.5 has been around since 2007) that all the .Net SDKs available need 3.5 or later.
You will have to create your own solution using the WebClient class and a lot of patience.

iPhone Facebook Graph API library

Is there an library for the iPhone using the new Facebook Graph API yet?
This library is great: http://www.capturetheconversation.com/technology/iphone-facebook-oauth-2-0-and-the-graph-api-a-tutorial-part-2
I am using it with great success in a current iPad project.
Update: Author just posted code to github: http://github.com/reallylongaddress/iPhone-Facebook-Graph-API
Update: Please check https://github.com/reallylongaddress/iPhone-Facebook-Graph-API/issues/4 if you find post to FB crashing while using code
Not that I have seen and trying to write something myself has been without success. I am VERY disappointed with Facebook and there lack of support in this area especially since they want developers to move over to the API, however iPhone developers are SOL at the moment which is a shame since using their current SDK is a pain in the ass with all of their callbacks and delegates. It is not very clean at all.
FB Graph API SDK for iPhone is rumored to be released during WWDC. Android SDK is already officially announced (but not released, yet).