hi . i am using FBConnect for sharing something on my app . so i want implement FBConnect API with 2 buttons "Login / share on facebook" Via UIACtionSheet .
now , have some questions :
assuming i have 2 buttons on the UIActionSheet with title of "Share on Facebook" "Login"
i want when user have logged in facebook my Login button title change to Log Out i know i should use this function :
- (void)session:(FBSession*)session didLogin:(FBUID)uid {
//a code that change my login button title to LogOut
}
2- i have logged in facebook . when iam going to go out from my app and again open app i shoud login again ! how could i Prevent this do?
3- finally i want share some text from UIWebView to facebook . my webview outlet names "myWeb" . how could connect FBConnect with UIWebView to share it ?
should is use
-(void)publishFeed:(id)target
???? thank you .