Questions tagged [facebook-ios-sdk]

Facebook's SDK for developing Facebook-connected applications for iOS devices

Facebook SDK 4.x for iOS.

1778 questions
6
votes
1 answer

iOS how to publish action on custom object Graph Api - Facebook

I need to publish action I got success in publishing 'liking the link' from graph API. e.g 'abc likes www.abc.com' now I am stuck at 'liking custom object' e.g 'abc likes toy1' and also to get total number of likes. This is sample code which is not…
Haris
  • 1,822
  • 2
  • 22
  • 44
6
votes
2 answers

Getting only those Facebook events which haven't expired graph api

I am trying to get only those facebook events that haven't expired yet(Upcoming events). When i use the following query i get all the events including those that have expired long ago. FBRequestConnection startWithGraphPath:@"/me/events" …
Win Coder
  • 6,628
  • 11
  • 54
  • 81
6
votes
2 answers

Facebook iOS SDK: Multiple Facebook apps for different environments

We are building an app that uses the newest Facebook iOS SDK (3.15) for iOS 7 on Xcode 5. There is an associated web product, and we use 3 environments for deployment: production, staging, and development. We have a separate Facebook app for each of…
hunteros
  • 1,137
  • 11
  • 20
6
votes
3 answers

Open an FBSession with Existing Token Data on iOS

I have a backend service that will log me in my app and return an extended facebook token from previous login, possibly from another device (so no credentials cached on this device). I want to use this token to start a Facebook Session. I am using…
Mike M
  • 4,879
  • 5
  • 38
  • 58
6
votes
3 answers

Facebook iOS SDK login native and UIWebView login

For an app I'm working on I need the users to be able to login to Facebook using the native SDK, but there is also a separate part of the app using an FB comments widget in a webview. The problem is after the user logs in using native SDK they are…
marchinram
  • 5,698
  • 5
  • 47
  • 59
6
votes
2 answers

FBSession requestNewPublishPermissions fails before response

I'm trying to get post permissions from a user using the Facebook SDK on iOS. I'm calling the code below in a method that is called if the app does not have the required publishing permissions to post to the users facebook wall. // No…
Tiddly
  • 1,620
  • 3
  • 21
  • 43
6
votes
0 answers

How to open a particular Facebook post in Facebook iOS app?

So I get this data from graph search: https://graph.facebook.com/search?q=watermelon which has post Id and the user Id. How can I use it to launch the Facebook iOS app and make the app go to that specific post? The URL schemes from…
Ashish Awaghad
  • 2,822
  • 3
  • 24
  • 33
6
votes
2 answers

Facebook iOS SDK: App crashes right after starting with "Symbol not found: _ACFacebookAppIdKey." only in iOS 5

Symptoms: app crashes right after starting: OS Version: iPhone OS 5.1.1 (9B206) Report Version: 104 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x00000001, 0xe7ffdefe Crashed Thread: 0 Dyld Error Message: Symbol not found:…
Diego
  • 18,035
  • 5
  • 62
  • 66
6
votes
1 answer

Phonegap cordova 2.3.0 phonegap-facebook-plugin

I am trying to setup the facebook connect plugin on my ios phonegap applications, I followed the steps in the link below https://github.com/phonegap/phonegap-facebook-plugin and completed it 100% but when I run the app It showing this error in the…
Man Mann
  • 423
  • 2
  • 10
  • 17
6
votes
2 answers

Invalid application ID with Facebook iOS application

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…
Élodie Petit
  • 5,774
  • 6
  • 50
  • 88
6
votes
1 answer

Could not fulfill request (error code 7) via openActiveSessionWithReadPermissions with Facebook test users

Background Recently upgraded to Facebook SDK 3.2 Tested on both device and simulator (iOS 5.1 through 6.1) Error is only present when attempting to authenticate Facebook test users. Error The Facebook server could not fulfill this access request:…
Terry Worona
  • 299
  • 1
  • 12
6
votes
2 answers

How do you open a FBSession with a completion handler that does not get retained and called on every session state change?

For some strange reason Facebook has decided to create completion handlers that are actually just notification observers. Ignoring why they are doing this, I need some way to make a request to open a FBSession and have a callback happen only once…
Reid Main
  • 3,394
  • 3
  • 25
  • 42
6
votes
1 answer

does the facebook ios sdk 3.2 require an app secret

I'm following the ios sdk install steps and noticed that there isn't a step to add the app secret key. Am I missing a step? How do they secure the app identity and disallow someone else to impersonate another app's app ID?
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
6
votes
1 answer

How to share an existing facebook post to user timeline from an iOS app?

Our app shows some Facebook posts from artists that our users follows. We want to enable our users to share posts they like back to their timeline (like the share button you see under each post in the Facebook Feed). We tried to do this using the…
Shahar Nechmad
  • 119
  • 1
  • 1
  • 6
6
votes
2 answers

xcode linking issue when using Facebook SDK and Windows Azure SDK

I am building an app which uses the latest Facebook SDK (v3.1) and the Windows Azure iOS Toolkit SDK. Now the Azure SDK requires adding the -all_load and -ObjC flags to the "Other Linker Flags" parameter in Build Settings. This is required to fix…
Joel
  • 15,654
  • 5
  • 37
  • 60