¡@

Home 

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

iphone Programming Glossary: fbsessionstate

Facebook sdk post on wall on iPhone app

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

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.. sessionOpenWithPermissions NSArray arrayWithObjects @ publish_stream nil completionHandler ^ FBSession session FBSessionState status NSError error if login fails for any reason we alert if error NSLog @ login failed UIAlertView alert UIAlertView..

Facebook in iPhone app

http://stackoverflow.com/questions/13973635/facebook-in-iphone-app

openActiveSessionWithPermissions permissions allowLoginUI allowLoginUI completionHandler ^ FBSession session FBSessionState state NSError error self sessionStateChanged session state state error error void sessionStateChanged FBSession.. self sessionStateChanged session state state error error void sessionStateChanged FBSession session state FBSessionState state error NSError error switch state case FBSessionStateOpen FBCacheDescriptor cacheDescriptor FBFriendPickerViewController.. error void sessionStateChanged FBSession session state FBSessionState state error NSError error switch state case FBSessionStateOpen FBCacheDescriptor cacheDescriptor FBFriendPickerViewController cacheDescriptor cacheDescriptor prefetchAndCacheForSession..

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 FBSessionState.. 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 self updateView iphone..

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.. FBSession.activeSession openWithBehavior FBSessionLoginBehaviorForcingWebView completionHandler ^ FBSession session FBSessionState state NSError error and here we make sure to update our UX according to the new session state self updateView NSLog.. FBSession.activeSession openWithBehavior FBSessionLoginBehaviorForcingWebView completionHandler ^ FBSession session FBSessionState state NSError error and appDelegate.session openWithBehavior FBSessionLoginBehaviorForcingWebView completionHandler ^..

Integrating Facebook SDK for older versions of Xcode to Support both iOS 5 and iOS 6

http://stackoverflow.com/questions/15467558/integrating-facebook-sdk-for-older-versions-of-xcode-to-support-both-ios-5-and-i

defaultAudience FBSessionDefaultAudienceOnlyMe allowLoginUI YES completionHandler ^ FBSession session FBSessionState status NSError error if error status FBSessionStateOpen action else NSLog @ error share improve this..

How to get the list of friend without opening FBFriendPickerViewController iOS

http://stackoverflow.com/questions/15709226/how-to-get-the-list-of-friend-without-opening-fbfriendpickerviewcontroller-ios

coding is as follow but main line is FBRequest requestForMyFriends void sessionStateChanged FBSession session state FBSessionState state error NSError error switch state case FBSessionStateOpen if self nil FBRequest requestForMe startWithCompletionHandler.. void sessionStateChanged FBSession session state FBSessionState state error NSError error switch state case FBSessionStateOpen if self nil FBRequest requestForMe startWithCompletionHandler ^ FBRequestConnection connection NSDictionary FBGraphUser.. FBFriendPickerViewController cacheDescriptor cacheDescriptor prefetchAndCacheForSession session break case FBSessionStateClosed self StopSpinner UIViewController topViewController self.navigationController topViewController UIViewController modalViewController..

Picture post to Facebook ends up in the wrong place

http://stackoverflow.com/questions/9374117/picture-post-to-facebook-ends-up-in-the-wrong-place

be the active session and it works sessionFb openFromAccessTokenData tokenData completionHandler ^ FBSession session FBSessionState status NSError error FBSession setActiveSession sessionFb Then calling request for PageAppID photos with Post parameters..