fbconnect

FBConnect facebook.stream.publish with NSDictionary problems

限于喜欢 提交于 2019-12-03 08:28:19
I have this code that can't send a Facebook request until now. NSDictionary *firstDict = [NSDictionary dictionaryWithObjectsAndKeys: @"image", @"Type", @"http://mysite.com/image.jpg", @"src", @"http://mysite.com/page.html", @"href", nil]; NSDictionary *secondDict = [NSDictionary dictionaryWithObjectsAndKeys: @"image", @"Type", @"http://mysite.com/image.jpg", @"src", @"http://mysite.com/page.html", @"href", nil]; NSArray *mediaArray = [[NSArray alloc] initWithObjects:firstDict, secondDict, nil]; NSArray *keys = [NSArray arrayWithObjects:@"name", @"description", @"href", @"media", nil]; NSArray

facebook Error App Domain: [IP Address] is not a valid domain.?

守給你的承諾、 提交于 2019-12-03 04:27:52
I give my production server IP address as App domain in facebook application but it's not saved. It returns error as App domain is not valid. So that I cannot use my facebook connect API. Can we give IP address as App domain in FB application? If it's not, what is the other way to do? No, it looks like the app domain can only be a domain and not an ip address. For example in the app settings page, near the App Domain hover the '?' and see: Enable auth on domains and subdomain(s) Also, I found this page: http://developers.facebook.com/docs/appproperties/ it refers to the REST api and so it's

iPhone: Facebook logout feature does not working

你离开我真会死。 提交于 2019-12-02 14:05:04
问题 I am implementing Facebook integration using FBConnct and it works fine but when I want to log out from the Facebook it doesn't work. My code is as follows: - (IBAction)logOutbuttonPressed:(id)sender { [Facebook logout:self]; } - (void)fbDidLogout { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults removeObjectForKey:@"FBAccessTokenKey"]; [defaults removeObjectForKey:@"FBExpirationDateKey"]; NSLog(@" after %@",facebook.accessToken); NSLog(@" date%@",facebook

iPhone: Facebook logout feature does not working

折月煮酒 提交于 2019-12-02 05:59:45
I am implementing Facebook integration using FBConnct and it works fine but when I want to log out from the Facebook it doesn't work. My code is as follows: - (IBAction)logOutbuttonPressed:(id)sender { [Facebook logout:self]; } - (void)fbDidLogout { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults removeObjectForKey:@"FBAccessTokenKey"]; [defaults removeObjectForKey:@"FBExpirationDateKey"]; NSLog(@" after %@",facebook.accessToken); NSLog(@" date%@",facebook.expirationDate); [defaults synchronize]; } - (void)logout:(id<FBSessionDelegate>)delegate { [self logout]; if

Problems with fbDidLogin never called iOS

左心房为你撑大大i 提交于 2019-12-02 04:08:55
问题 I'm having problems with my app saving the access_token. The problem is, when an iPhone hasn't the Facebook app installed, safari will handle this and there is no problem. But as soon as the iPhone has the Facebook app installed. It Just isn't saving the access token and opens the Facebook app every time when it needs to do something with Facebook. It then says, you already have given .... permission... This is what i'm doing to in the viewdidload to ask permission the first time and receive

FBConnect: “The user hasn't authorized the application to perform this action”

笑着哭i 提交于 2019-12-02 03:53:16
问题 I m developing an iPhone app which includes facebook wall posting.After log in, I post to user's wall by following code: NSString *appIcon = [NSString stringWithString:@"http://a2.twimg.com/profile_images/416166235/apple-black_normal.png"]; NSString *appSiteUrl = [NSString stringWithString:@"http://www.apple.com"]; NSString *attachment= [NSString stringWithFormat:@"{\"caption\":\"%@ Likes in the iPhone App\",\"description\":\"\",\"media\":[{\"type\":\"image\",\"src\":\"%@\",\"href\":\"%@\"}]}

Story link flow using SSO facebook - openURL not being called

落花浮王杯 提交于 2019-12-01 21:27:49
I have implemented Single-Sign-On in my iOS 4.3 app successfully. Now I want to publish a link to the users facebook wall so that when his/her friends that also own the app clicks the link they should be redirected to my app. The way I interpret http://developers.facebook.com/docs/mobile/ios/build/#deeplink , is that one of the delegate functions - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url, (pre iOS 4.2) - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation , (iOS 4.2+)

Showing popup in the new Facebook JavaScript SDK

做~自己de王妃 提交于 2019-11-30 13:31:49
问题 I used to have an href in my website. When users clicked on it, a multi-friend selector showed so they could invite their friends to my website. That was done using the following code: FB.ensureInit(function() { var dialog = new FB.UI.FBMLPopupDialog('XXXXXXX', ''); var fbml = 'Multi-Friend-Selector FBML' dialog.setFBMLContent(fbml); dialog.setContentWidth(620); dialog.setContentHeight(570); dialog.show(); }); Now, I'm using the new JavaScript SDK (http://connect.facebook.net/en_US/all.js),

Starting out with an application for Facebook Connect on the iPhone

人盡茶涼 提交于 2019-11-30 10:33:33
I would like to make a button in order for the user to be able to connect and join a group I have created in Facebook. Is this possible with Facebook Connect ? Is there a tutorial or something? You can try checking out the newly-updated Facebook Connect SDK for iOS which has been updated for the Graph API. You can also check out Ray Wenderlich's series on using the Graph API with the iPhone starting here . 来源: https://stackoverflow.com/questions/3498631/starting-out-with-an-application-for-facebook-connect-on-the-iphone

Problem getting Facebook pictures via iOS

倾然丶 夕夏残阳落幕 提交于 2019-11-30 08:54:15
问题 I'm trying to fetch events and profile pictures via Facebook connect on iOS, I've made for example the request: [facebook requestWithGraphPath:@"me/picture" andDelegate:self]; and the response handling method: (void)request:(FBRequest *)request didLoad:(id)result { NSString *url = [[NSString alloc] initWithData:result encoding:NSUTF8StringEncoding]; NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:url]]; imageView.image = [UIImage imageWithData:data]; } and it won't work, the