fbconnect

FB share in new window

牧云@^-^@ 提交于 2019-12-07 08:28:43
问题 I've got FB share working with the following code: <a target="_blank" href="http%3A%2F%2Fwww.facebook.com%2Fshare.php%3Fu%3Dhttp%3A%2F%2Fferalmotion.com%2Fshare%3Fwatch%3Dfd5f0c2"> <img src="/images/logo/facebook.png" alt="share on facebook"/> </a> The problem is it opens in a full browser window. Does anybody know how I would get the share to open in the standard 500 x 360 pop-up window ??? 回答1: javascript will do the job. <script type="text/javascript"> <!-- function myPopup(url) { window

iPhone SDK / Facebook Connect: Using a custom login dialog

我与影子孤独终老i 提交于 2019-12-07 05:25:41
问题 Exactly what the title says. Is it possible to use Facebook Connect (or any other means of FB integration) in a native iPhone app without resorting to the built in login dialog (which looks awful)? Something where I could create my own custom login screen asking for the facebook login username and password and then using the fbconnect native methods to validate that info and retrieve a valid session? 回答1: Don't do it. This is against policy, and your application will get shut down for it.

setImageURI / setimagebitmap to fetch image from net and display in image view

萝らか妹 提交于 2019-12-06 07:37:46
I want to fetch image from net from some URL and show it in my ImageView. following is the code i am using :- Bitmap bm = null; try { URL aURL = new URL("stringURL"); URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(is); bm = BitmapFactory.decodeStream(bis); bis.close(); is.close(); }catch (Exception e) { // TODO: handle exception } iv.setImageBitmap(bm); but i can not get the image I think the error is in URL aURL = new URL("stringURL"); should be without quotes URL aURL = new URL(stringURL);

Unsafe JavaScript attempt to access frame with URL: Domains, protocols and ports must match.

荒凉一梦 提交于 2019-12-05 18:03:46
I'm trying to set the height of the app by calling: FB.init({ appId: fbAppId, status: true, cookie: true, xfbml: true, oauth: true, channelURL: webUrl + '/channel.html' }); FB.Canvas.setAutoResize(); And it doesn't work if it's on HTTP but works on HTTPS. Sample URL: http://www.facebook.com/ListerineAU/app_300955373319633 - doesn't work https://www.facebook.com/ListerineAU/app_300955373319633 - works Error message: Unsafe JavaScript attempt to access frame with URL http://www.facebook.com/ListerineAU/app_300955373319633 from frame with URL https://s-static.ak.facebook.com/connect/xd_arbiter

iphone : FBConnect Auto post to user wall

霸气de小男生 提交于 2019-12-05 01:19:03
问题 i want to auto post to a user wall from my iphone applications ( without that "publish" "skip" dialog box ). how i can do that ? 回答1: the following should be called in the class that implements FBSessionDelegate and FBRequestDelegate : Facebook *_facebook = [[Facebook alloc] initWithAppId:kAppId]; NSArray *_permissions = [[NSArray arrayWithObjects: @"read_stream", @"offline_access",nil] retain]; [_facebook authorize:_permissions delegate:self]; And that is the call for fb post (should be used

How to post on Facebook wall without opening Dialog?

偶尔善良 提交于 2019-12-04 19:02:56
I am trying to integrate facebook in my app. I had done code for login and trying to post on my wall but I don't need the facebook dialog. I want my own. after googling I found some code but its not working. It is not giving any error but not posting any thing... Here I am using is : NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"Facebook developer Test Message",@"message", @"Test it!",@"name", nil]; Facebook *fb = [[Facebook alloc] init]; [fb requestWithGraphPath:@"me/feed" // or use page ID instead of 'me' andParams:params andHttpMethod:@"POST" andDelegate

FBConnect iphone : I coud'nt get Photos albums for some account ?

泄露秘密 提交于 2019-12-04 17:43:39
Maybe someone can't help me. I use the last FBConnect ( http://github.com/facebook/facebook-ios-sdk/ ) for Facebook connexion. And I retreive the list of photos albums for the user. NSMutableDictionary* params = [NSMutableDictionary NictionaryWithObjectsAndKeys:_facebook.accessToken,@"access_token",nil]; [_facebook requestWithGraphPath:@"me/albums" andParams:params andDelegate:self]; I'm testing with 4 differents account with all the same rules for privacy (Account/Privacy settings). And for some of them the albums list is empty ? And if i test via a webbrowser on a desktop computer ( https:/

Story link flow using SSO facebook - openURL not being called

老子叫甜甜 提交于 2019-12-04 04:42:11
问题 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:

FBConnect's handleOpenURL Method Not Called by my AppDelegate

只愿长相守 提交于 2019-12-03 17:25:18
I have implemented the FBConnect SDK into my app, and it works perfectly on the simulator. I then modified my app's .plist file appropriately, and added the necessary method to my AppDelegate for when Facebook is installed on the device: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { NSLog(@"handleOpenURL Method was called and sent the following:"); NSString *urlString = [NSString stringWithContentsOfURL:(NSURL *)url]; NSLog(@"URL String: %@", urlString); return [[flipsideViewController facebook] handleOpenURL:url]; } From the above NSLogs and the observation

FBSessionDelegate methods not firing

陌路散爱 提交于 2019-12-03 08:48:01
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 : UIViewController <FBSessionDelegate, FBRequestDelegate, FBDialogDelegate>{ Facebook* _facebook; NSArray*