¡@

Home 

2014/10/15 ¤U¤È 10:08:55

iphone Programming Glossary: fbsession

Facebook sdk post on wall on iPhone app

http://stackoverflow.com/questions/11540372/facebook-sdk-post-on-wall-on-iphone-app

NSLog @ loginButtonPressed called AppDelegate appdel UIApplication sharedApplication delegate appdel.facebookSession FBSession alloc init appdel.facebookSession openWithCompletionHandler ^ FBSession session FBSessionState status NSError error.. delegate appdel.facebookSession FBSession alloc init appdel.facebookSession openWithCompletionHandler ^ FBSession session FBSessionState status NSError error But I have a problem with posting message on user's wall. Here's the.. appdel.facebookSession FBSession alloc init appdel.facebookSession openWithCompletionHandler ^ FBSession session FBSessionState status NSError error But I have a problem with posting message on user's wall. Here's the code IBAction likeButtonPressed..

Facebook iOS SDK 3.0, implement like action on a url?

http://stackoverflow.com/questions/12112847/facebook-ios-sdk-3-0-implement-like-action-on-a-url

NSURL URLWithString facebookLike.titleLabel.text FBRequest requestLike FBRequest alloc initForPostWithSession FBSession activeSession graphPath @ me og.likes graphObject objectToLike FBRequestConnection connection FBRequestConnection alloc.. theWholeUrl NSString stringWithFormat @ https graph.facebook.com me og.likes object @ access_token @ urlToLikeFor FBSession.activeSession.accessToken NSLog @ TheWholeUrl @ theWholeUrl NSURL facebookUrl NSURL URLWithString theWholeUrl NSMutableURLRequest..

iOS 6 Facebook Login not refreshing access token

http://stackoverflow.com/questions/13125430/ios-6-facebook-login-not-refreshing-access-token

1351497600. The current unix time is 1351525180. What do I need to do so things just work I've read that in SDK 3.1.1 FBSession will just take care of it but that doesn't seem like the case. My access token is expiring and once it does iOS FB SDK won't.. access token is expiring and once it does iOS FB SDK won't give me back a refreshed one. Even logging out which calls FBSession.activeSession closeAndClearTokenInformation doesn't fix this. The only thing I've been able to do is Reset Content and Settings.. my app. Only then can I get another token which will expire in an hour. Random notes When my app resumes I'm calling FBSession.activeSession handleDidBecomeActive and self.facebook extendAccessTokenIfNeeded According to the SO question linked to above..

Facebook SDK changes to Login in Pop-up view

http://stackoverflow.com/questions/14214903/facebook-sdk-changes-to-login-in-pop-up-view

if appDelegate.session.isOpen appDelegate.session closeAndClearTokenInformation else if appDelegate.session.state FBSessionStateCreated appDelegate.session FBSession alloc init appDelegate.session openWithCompletionHandler ^ FBSession session .. closeAndClearTokenInformation else if appDelegate.session.state FBSessionStateCreated appDelegate.session FBSession alloc init appDelegate.session openWithCompletionHandler ^ FBSession session FBSessionState status NSError error and.. FBSessionStateCreated appDelegate.session FBSession alloc init appDelegate.session openWithCompletionHandler ^ FBSession session FBSessionState status NSError error and here we make sure to update our UX according to the new session state..

Facebook-Ios-Sdk 3.0.8 Crash Xcode on Alternative Login

http://stackoverflow.com/questions/14354191/facebook-ios-sdk-3-0-8-crash-xcode-on-alternative-login

if appDelegate.session.isOpen appDelegate.session closeAndClearTokenInformation else if appDelegate.session.state FBSessionStateCreated appDelegate.session FBSession alloc init FBSession.activeSession openWithBehavior FBSessionLoginBehaviorForcingWebView.. closeAndClearTokenInformation else if appDelegate.session.state FBSessionStateCreated appDelegate.session FBSession alloc init FBSession.activeSession openWithBehavior FBSessionLoginBehaviorForcingWebView completionHandler ^ FBSession.. else if appDelegate.session.state FBSessionStateCreated appDelegate.session FBSession alloc init FBSession.activeSession openWithBehavior FBSessionLoginBehaviorForcingWebView completionHandler ^ FBSession session FBSessionState..

Documented process for using facebook connect for the iPhone to upload photos

http://stackoverflow.com/questions/750328/documented-process-for-using-facebook-connect-for-the-iphone-to-upload-photos

void done id sender self dismissModalViewControllerAnimated YES NSObject id init if self super init _session FBSession sessionForApplication kApiKey secret kApiSecret delegate self retain return self id initWithNibName NSString nibNameOrNil.. bundle NSBundle nibBundleOrNil if self super initWithNibName @ SessionViewController bundle nibBundleOrNil _session FBSession sessionForApplication kApiKey secret kApiSecret delegate self retain return self void dealloc _session release anImage release.. NSError error _label.text NSString stringWithFormat @ Error d @ error.code error.localizedDescription FBSessionDelegate void session FBSession session didLogin FBUID uid _permissionButton.hidden NO _feedButton.hidden NO NSString fql..