facebook-ios-sdk

Get blank page while log in, share and like with Facebook SDK on iOS 10 with Facebook SDK 4.15.1

拜拜、爱过 提交于 2019-12-10 21:36:51
问题 I get this error when using FBSDKLoginKit, FBSDKShareKit, to login, share link and like a link in my application. I using FBSDKLoginButton to login @property (nonatomic, strong) IBOutlet FBSDKLoginButton *loginButton; - (void)viewDidLoad { [super viewDidLoad]; self.loginButton.publishPermissions = @[@"publish_actions"]; } Using FBSDKShareKit to share: - (FBSDKShareDialog *)getShareDialogWithContentURL:(FBSDKShareLinkContent *)content { FBSDKShareDialog *shareDialog = [[FBSDKShareDialog alloc]

JavaScript error on logging in

限于喜欢 提交于 2019-12-10 20:23:17
问题 In iOS 5, when a user attempts to share a link using the Facebook API, they are prompted to log in, but then the resulting page returns this: <script type="text/javascript"> window.location.href="fbconnect:\/\/ success#_=_"; </script> The only option is to close the window. If the user then attempts to share a link a second time, it works. Any ideas how to resolve this? 回答1: I do have the same problem. It is an issue with iOS 4.2 as well. The javascript I get in return has a lillte different

iOS Facebook app invite: error

怎甘沉沦 提交于 2019-12-10 18:27:50
问题 I have to implement Facebook invite in my iOS app. I am following below reference link: https://developers.facebook.com/docs/app-invites/ios and created app link as per below link: https://developers.facebook.com/docs/applinks I am facing below error:- Error Domain=com.facebook.sdk.core Code=9 "The operation couldn’t be completed. (com.facebook.sdk.core error 9.)" in below FBSDKAppInviteDialogDelegate delegate method func appInviteDialog(appInviteDialog: FBSDKAppInviteDialog!,

PFFacebookUtils logInInBackgroundWithReadPermissions: block: opens Facebook app instead of using system account

一曲冷凌霜 提交于 2019-12-10 18:21:03
问题 I've upgraded to ParseFacebookUtilsV4 and I've updated my login code as such: [PFFacebookUtils logInInBackgroundWithReadPermissions:FACEBOOK_READ_PERMISSIONS block:^(PFUser *user, NSError *error) { ... }]; However, now my app switches to Facebook app for a brief moment and comes back. It uses the native Facebook app to login, while there is still a valid iOS Facebook account in Settings. How can I make PFFacebookUtils v4 use the system Facebook account when available, and only fall back to

Can I post on page's wall with an iOS application?

天涯浪子 提交于 2019-12-10 16:23:22
问题 How to post to a page's wall using FaceBook Graph API for iPhone? Should I need to prompt for any permission for that? Is it possible or not? Thanks in advance. 回答1: You can using the Post method. It requires the publish_stream permission. The user needs to have "liked" the page in question. To publish a wall post, POST the message and optional attachment to the feed/wall of the user, page or group, i.e., http://graph.facebook.com/PROFILE_ID/feed. Annoyingly, the one thing that Graph API will

Facebook, iOS SDK

末鹿安然 提交于 2019-12-10 12:16:22
问题 I am currently making a Facebook application for iOS that pulls the profile feed and puts it in a UITableView. Right Now When the View Loads: [facebook requestWithGraphPath:@"me/feed" andDelegate:self]; and in -(void)request:(FBRequest *)request didLoad:(id)result, i have: NSArray *messagesFBData = [result objectForKey:@"data"]; NSMutableArray *friendIds = [NSMutableArray arrayWithCapacity:messagesFBData.count]; NSMutableArray *fromData = [NSMutableArray arrayWithCapacity:messagesFBData.count

Read Public Timeline from Facebook

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 10:28:51
问题 I am new on iOS Facebook sdk. I am using version version 3.1.1 . I can reach my profile's information via sdk. But I am wondering How can I access and read from other user's public timeline? I search on web but I couldn't find anything. Thanks for answers 回答1: All roads lead to Rome. You can find other users' IDs by many ways on quite any API objects (likes and comments from photos and posts of friends or pages). Example of a request that gets many users, from a Facebook page post: https:/

Invalid application ID with Facebook iOS application

三世轮回 提交于 2019-12-10 04:35:37
问题 Here is the error when I try to login from my app. MyApp[47747:907] Failed to log in Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0x1c5d3c50 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:SystemLoginCancelled, com.facebook.sdk:ErrorInnerErrorKey=Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: Invalid application [My_App_Id]" UserInfo=0x1c5cb630

Fetching basic information (id, first_name) from Facebook by using Social Framework - source code and screenshots attached

梦想与她 提交于 2019-12-09 21:53:51
问题 For what would be a word game later I am trying to fetch very basic information about a player by using Social framework: id first_name gender location (i.e. nothing sensitive like email and I don't use Facebook iOS SDK). So in Xcode 5.0.2 I create a blank single view app for iPhone and add Social.framework to the Build phases tab. Then I add the following code to the ViewController.m: #import "ViewController.h" #import <Social/Social.h> #import <Accounts/Accounts.h> #define FB_APP_ID @

xcode beta 3 swift and FBLoginViewDelegate

旧时模样 提交于 2019-12-09 21:06:56
问题 with the new release of xcode (beta 3) the class I implemented to handle facebook login in facebook doesn't work anymore. it failed to use FBLoginViewDelegate where before it worked. this happens when I use to extends a class: class LoginVC: MyViewController,MyDetailUsable,FBLoginViewDelegate I installed last facebook sdk, Just in case I forgot something, this are my settings defined for the project: MyConnection/MyConnection-Bridging-Header.h : #import <FacebookSDK/FacebookSDK.h> //