Use the Graph API for the photo uploading example.

Summary:
Edited uploadPhoto to use requestWithGraphPath instead of the legacy REST api
requestWithMethodName method. Also added the publish_stream permission, which
is
needed for uploading photos.

Test Plan:
Run the DemoApp and login. Click the upload button and verify that a photo was
uploaded to the user's Facebook account (pending approval).

Reviewed By: yariv
Reviewers: yariv
CC: yariv
Differential Revision: 257551
Refactor to init session delegate in Facebook.m constructor

Summary: The change basically just sets the session delegate in the constructor so
it's available when handleOpenUrl is called.

Test Plan: Ran the DemoApp and ensured SSO still works.

Reviewed By: toddkrabach

Reviewers: seshadri, leon, atishm, toddkrabach, lshepard, caabernathy

Differential Revision: 297414
Task ID: 653835
README changes only - Documentation update to match init session delegate changes. Add notice on issue reporting.
Remove auth.expireSession call from SDK

Summary: The expireSession call was put in as a precaution to make sure that
apps sessions were really no longer good. However, this is unnecessary and it
causes issues with apps that were expecting the session to remain usable even
after the user logged out. So let's remove this call and leave it up to the app
developer to expire the session if they want.

Test Plan: Logged in and out of the demo app.

Reviewed By: trvish
Unless the server indicates a "service_disabled_use_browser" error, fallback to the inline authentication dialog in -[Facebook handleOpenURL:]
Merge pull request #382 from FunkeeMonk/inline_fallback

Fallback to inline authentication dialog if SSO login fails.
This reverts commit 74ae9527cb82663911973fc6286e142928af92ce.

The original behavior is the correct behavior as it prevents random errors from popping up the inline login dialog.
fix project file
rename localAppId to urlSchemeSuffix

Summary: urlSchemeSuffix is more descriptive and easier to grok than
localAppId.

Warning: This changes breaks compatibility with the previous version of the SDK. Please update your code to use the latest method signature.

Test Plan: compiled and ran the demo app with a urlSchemeSuffix configured

Reviewers: brent, lshepard, teck

Reviewed By: lshepard

CC: brent, lshepard

Differential Revision: 334704

Task ID: 737701
Dialog UI improvements, updated README, new sample Hackbook app
Move the URL scheme suffix parameter from authorize: to init:

Summary: Moving the url scheme suffix parameter from authorize: to init:, where
it fits better, as it behaves in a similar way to appId.

Test Plan: Modified the demo app to use the new method signatures. Verified SSO
still worked with and without a url scheme suffix.

Reviewers: lshepard, brent, caabernathy, teck

Reviewed By: brent

CC: brent

Differential Revision: 335813
Merge branch 'master' of https://github.com/facebook/facebook-ios-sdk
README tweaks
Update ignore file, delete files that should be ignored. Fix warning in UITableViewCell selectionStyle assignment
Handle no friend case for publishing to friend's wall. Small memory leak fix, need to release before making savedAPIResult nil first.
Removing old sample DemoApp.
Fix semantic warnings in iOS5 and Xcode 4.2

Summary: Pulled from https://github.com/facebook/facebook-ios-sdk/pull/401

Test Plan:
1/ Ran on iPhone 4 device with iOS 5, Hackbook iOS app, launched feed dialog,
rotate all orientations and check works as expected. Also rotated device before
launching dialog and rotating dialog to see it performed well.
2/ Ran experiment (1) with iPhone 4.3 simulator.
3/ Ran experiment (1) with iPad 4.3 simulator.
4/ Ran experiment (1) with iPad 5.0 simulator.

Reviewers: yariv, brent

Reviewed By: yariv

CC: lshepard, yariv

Differential Revision: 354600

Revert Plan: OK

Task ID: 673148
Properly initialize FBDialog and Hackbook sample app data

Summary:
Related to pull requests
https://github.com/facebook/facebook-ios-sdk/pull/405
https://github.com/facebook/facebook-ios-sdk/pull/407

Test Plan:
1/ Tested Hackbook iOS app with iPhone 4 device with iOS 5, ran through various
screens and tested dialog.
2/ Tested Hackbook iOS app with iPad 2 device with iOS 4.3, ran through various
screens and tested dialog.

Reviewers: yariv, brent

Reviewed By: yariv

CC: lshepard, yariv

Differential Revision: 355088

Revert Plan: OK

Task ID: 786690
Update sample app to show how to handle dialog request results

Summary:
Part of the discussion of the abandoned diff https://phabricator.fb.com/D342789
was that we should update the Hackbook iOS sample app to show developers how to
process data passed back from the dialog. Changes were made to use
dialogCompleteWithUrl: instead of
 dialogDidComplete: method. Other tweaks made to display a success message back
to the user when an app request was sent. Also NSLog the post_id and request_ids
information so developer can check these out.

Changes still need to be made to the iOS SDK docs
(https://developers.facebook.com/docs/reference/iossdk/FBDialogDelegate/) to let
developers know how to handle the dialog data in the callback.

Test Plan:
1/ On iOS simulator 4.3 ran through the Publish Feed and Send Request flows.
Checked it works and shows the proper user messages and debug messages (that
developers could use in the future).
2/ Tested on iPhone 5.0 and tested feed and app request dialog flows.

Reviewers: brent

Reviewed By: brent

CC: lshepard, yariv, brent, caabernathy

Differential Revision: 360490

Revert Plan: OK

Task ID: 697899
Fix semantic warnings in Hackbook iOS sample app

Summary: Use UITableViewCellSelectionStyleNone instead of
UITableViewCellEditingStyleNone for selectionStyle.

Test Plan: On iOS simulator 5.0 test Hackbook iOS sample app, publish feed,
graph api sections.

Reviewers: brent

Reviewed By: brent

CC: lshepard, yariv, brent

Differential Revision: 365804

Revert Plan: OK