Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- window.location.href="fbconnect://success?
- post_id=<MyFbUserID>_253268854729889#_=_";
- </script>
- #import "Facebook.h"
- #import "FBConnect.h"
- #import "FBDialog.h"
- @interface MyAppModelClass : NSObject <FBDialogDelegate, FBSessionDelegate> {
- @property (nonatomic, retain) Facebook* facebook;
- }
- #import "MyAppModelClass.h"
- @synthesize facebook;
- #pragma mark -
- #pragma mark FBDialogDelegate
- - (void) dialogDidComplete: (FBDialog*) dialog {
- NSLog(@"<FBDialogDelegate>.dialogDidComplete: %@", dialog);
- }
- - (void) dialogCompleteWithUrl:(NSURL*) url {
- NSLog(@"<FBDialogDelegate>.dialogDidCompleteWithURL: %@", url);
- }
- - (void) dialogDidNotComplete:(FBDialog*) dialog {
- NSLog(@"<FBDialogDelegate>.dialogDidNotComplete: %@", dialog);
- }
- - (void)dialogDidNotCompleteWithUrl:(NSURL*) url {
- NSLog(@"<FBDialogDelegate>.dialogDidNotCompleteWithUrl: %@", url);
- }
- - (void)dialog:(FBDialog*)dialog didFailWithError:(NSError*) error{
- NSLog(@"<FBDialogDelegate>.didFailWithError: %@", dialog);
- }
- #import "MyAppModelClass.h"
- - (void) aMethod;
- #import "MyViewCntrl.h"
- - (void) aMethod {
- NSMutableDictionary* myParameters = [[NSMutableDictionary alloc];
- initWithObjectsAndKeys: @"1234567", @"app_id",
- @"touch", @"display",
- @"http://myWebSite.de/pics/AppIcon.jpg", @"picture",
- @"http://myWebSite.de", @"link",
- @"It's my web site", @"caption",
- @"Visit my personal web site", @"description",
- @"false", @"show_error", nil];
- [ptrMyAppModelClass facebook] dialog: @"feed"
- andParams: myParameters
- andDelegate: ptrMyAppModelClass];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement