fbconnect

FBSessionDelegate methods not firing

Deadly 提交于 2019-12-21 03:12:15
问题 I'm attempting to implement the latest Facebook Connect SDK and I'm having some troubles. For some reason the delegate callbacks for FBSessionDelegate protocol are not being fired. I've followed the instructions on the git Facebook page and tried to mimic the Facebook sample app but no luck. I'm going crazy here so I'm gonna post my code and maybe somebody will see something silly that I've missed. #import <Foundation/Foundation.h> #import "FBConnect.h" @interface FacebookWrapper :

How to have a paid and free version of iOS app share FB App ID?

让人想犯罪 __ 提交于 2019-12-21 02:42:21
问题 I have a free and a paid version of the same iPhone app. I would like for them to share a Facebook App ID since they are essentially the same app. I thought I could accomplish this by using this method from the Facebook class. - (void)authorize:(NSArray *)permissions localAppId:(NSString *)localAppId However, login always fails for one of the apps (in my case the free version) and it would seem that the reason is that the Facebook app created in the web interface asks for an App Bundle ID and

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

随声附和 提交于 2019-12-20 16:30:12
问题 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? 回答1: 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

How to post photos to facebook iphone fbconnect

穿精又带淫゛_ 提交于 2019-12-19 05:09:41
问题 Hi I'm using FBConnect to post to facebook, now I need to post photos from library or taken with the cam, does anyone has a clue how to do this ?? I've searched in google but I can't find a piece of code that works for me. I've found this method: FBRequest *uploadPhotoRequest = [FBRequest requestWithDelegate:self]; [uploadPhotoRequest call:@"photos.upload" params:args]; but in my fbconnect i have this one instead: (I think the version of the api is different) [_fbRequest call:(NSString *)

fbconnect API response in iPhone

南笙酒味 提交于 2019-12-18 07:35:06
问题 I am calling the FaceBook API like this: -(IBAction)testBtnAct:(id)sender{ [facebookObj requestWithGraphPath:@"me" andDelegate:self]; } -(IBAction)test1BtnAct:(id)sender{ [facebookObj requestWithGraphPath:@"me/friends" andDelegate:self]; } - (void)request:(FBRequest *)request didLoad:(id)result { NSLog(@"request didLoad..%@",result); }; The issue is that if I am clicking the both button(testBtnAct and test1BtnAct) and then output comes into - (void)request:(FBRequest *)request didLoad:(id

fb login popup block

房东的猫 提交于 2019-12-17 23:04:41
问题 I am making using fb login feature but problem comming to me is that whenever I click on the fb login button before page media loading is completed, it blocks the popup for fb login but if I click on fblogin after a second passed to loading event it works Here is the function I am using: function fb_login() { var email=''; console.log(loginClassbackQueue); // console.log('user wants to login with fb'); FB.getLoginStatus(function(response) { if(response.status!='connected'){ FB.login(function

Asynchronous methods in NSOperation

旧巷老猫 提交于 2019-12-17 17:37:04
问题 I'm fetching some data from Facebook Connect (using the FBConnect Objective-C 2.0 framework) and I'm doing all that in an NSOperation. It is in an NSOperation because I have several other operations that run as well and this is one of them. The problem is that all the FBConnect calls are asynchronous. Because of this, the main method of the NSOperation quickly finishes and the operation is marked as completed. Is there some way to overcome this? It would appear there are no synchronous

FBConnect facebook.stream.publish with NSDictionary problems

落花浮王杯 提交于 2019-12-13 11:37:37
问题 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

Facebook Connect login dialog not getting displayed on iphone with new facebook-ios-sdk

旧巷老猫 提交于 2019-12-13 07:04:34
问题 I am using new new Facebook-ios-sdk did everything what is informed in README.mdown. while running this app. It didnt showed me anything. But when i kept break point in show in Fbdialog here: UIWindow* window = [UIApplication sharedApplication].keyWindow; if (!window) { window = [[UIApplication sharedApplication].windows objectAtIndex:0]; } If any one can help me out with this it will be really great. thanks, Aby 回答1: Problem was with the APPID which we also need to provide in the plist. 来源:

Publish UIWebview via Facebook connect

橙三吉。 提交于 2019-12-12 05:13:47
问题 I am using fbConnect in my Cocoa Touch application. I have UIWebview on my view, and I want to publish the UIWebview's context (its only text) to FaceBook. How should I change the FBStream to publish my UIWebview? FBStreamDialog* dialog2 = [[[FBStreamDialog alloc] init] autorelease]; dialog2.delegate = self; dialog2.userMessagePrompt = @"Share Ghazals on your wall"; dialog2.attachment = @"{\"name\":\"Hafez Application for iPhone\"," "\"href\":\"http://itunes.apple.com/us/app/divan-of-hafez