iphone - How to use the Facebook API, and how can I post a link with status on the users wall via my app? -
iphone - How to use the Facebook API, and how can I post a link with status on the users wall via my app? -
i'm trying post link + status through app, using "popup" facebook window user asked log in, asked allow app profile. want him able write status, link specify attached. facebook popup triggered button, not @ start of app (in documentation found want me implement in appdidfinish launching method...) don't want that, want popup facebook window triggered per button tap.
i'm trying figure out few days now, finding tutorials out-dated , facebook developer documentation weak- atleast for me. downloaded facebook-ios-sdk api , json included github. did few attempts, furthest got user asked log in, not through app, instead safari opened , log in field there, not in app.
could please post code, basic tutorial might find helpful, or point me online tutorial? tried post iphone dev sdk forums, other people asked this, never got help. out here please set help out newbies?
i want login screen this, , rest should in popup too: http://www.facebook.com/photo.php?pid=439332&l=c04b210914&id=100001688115647
thanks lot in advance!
there sample code in facebook-ios sdk can see there code available things. here code snippet older facebook api should work newer graph api too
- (void)setstatus:(id)target { nsstring *statusstring = @"testing iphone connect sdk"; nsdictionary *params = [nsdictionary dictionarywithobjectsandkeys: statusstring, @"status", @"true", @"status_includes_verb", nil]; [[fbrequest requestwithdelegate:self] call:@"facebook.users.setstatus" params:params]; }
what can create controller handle facebook requests singleton class , on tap of button this
- (ibaction)showfblogindialog:(id)sender { if(loggedinfacebook == no) { fblogindialog *dlg = [[[fblogindialog alloc] initwithsession:facebookcontroller._session] autorelease]; [dlg show]; } else { [facebookcontroller logoutuser]; } }
if need farther help search on google , stackoverflow find bunch of.
iphone ios facebook api
Comments
Post a Comment