So I've downloaded facebookSDK pkg, and I already installed it to on my document folder. But I can't find facebookSDK.framework inside the folder, I need it for my iOS project. Where I can find it?
Pretty sure the framework you are after is FBSDKCoreKit.framework. If you are manually adding the framework this is found in the folder you have installed in your documents folder. This includes the ability to see:
- Sharing
- Login with Facebook
- App Events
- Graph API calls
Information found on https://developers.facebook.com/docs/ios/getting-started
If you are working on an old app which is using FacebookSDK previous framework then you need to download that old version like 3.XX but if you are developing a new app and integrating new Facebook then you need to use FBSDKCoreKit.framework that is in v4.0.1
Some functions in never version are modified.
For details study the Facebook documentation
The above two answers are correct. Refer these if you want more clarification
First One
Second One
Related
Trying to follow Facebook's instructions for adding the iOS SDK but they lost me at step 1.
The download is a zip file containing the following:
Anyone have any idea where this wizard is?
Hey there is nothing related with the wizard. Now you have the SDK containing the required framework. Now simply use those frameworks in your project. For further help follow "https://developers.facebook.com/docs/ios/getting-started".
I am developing an app that google-drive-sdk has been successfully integrated onto, but now I want to share my app on google-plus so I used Google+ SDK, and it conflicts with GoogleDrive SDK.
I used GTLDriveFile Class for GoogleDrive,
and I followed these steps for installing GoogleDrive.
It works fine with just GoogleDrive SDK. But if I add Google+ SDK then it'll conflict with GoogleDrive SDK. I've tried lots of time and searched on Google but I can't find anything.
I only found these links:
1: (SO) How to implement Google Drive and Google Plus sdk in ios project
2: (YouTube) Google Drive SDK: using the Google+ Sign-In button with Drive on iOS
Update:
It displays duplicate symbols for architecture i386
If I delete one file then it will display the same error in another file because in following folder
GTL->GTL Source->Common->Objects
which has all the files, which are already available in
GoogleOpenSource.framework
And if I deleted all the .h files from the GTL folder then it won't work either, it gives a 'file not found' error.
Can anyone help me?
Update
If I had not added GoogleOpenSource.framework but I added only GooglePlus.framework then it gives me error like....
Thanks in advance!
You should be able to drop the GoogleOpenSource.framework - that just includes the Plus relevant parts of GTL and GTM which you're likely to be bringing in as part of the Drive client library. If you need any files from it, you can find the source version of whats included within the original SDK zip you downloaded.
To be clear:
Delete GoogleOpenSource.framework from your projectList item
If there are any errors on missing files, bring those in individually from the open source folder in the Google+ SDK zip. Include both the .m and .h files
It's much more simpler than #Ian's answer. No offence #Ian. :)
SVN checkout from http://google-api-objectivec-client.googlecode.com/svn/trunk
After checkout completes, Go to Source folder and open GTL.xcodeproj.
See the image
I am using phonegap facebook plugin.
When I tried to login from my app, fbAppAuth dialog and safariAuth occurs at the same time.
So, although I finished safariAuth , fbAppAuth dialog appears. I need to turn off one of them
and found solution from below link.
How to authorize user through a DIALOG with the NEW Facebook Connect iOS API?
But, I need to modify facebook.m file which is I don't have. I am using facebooksdk.framework 3.1
and there is only facebook.h file but no facebook.m file.
How can I find facebook.m file from my project? or.... is it something I should download?
any help will be appreciated..
In FBSession.h the enum FBSessionLoginBehavior is what you're looking for.
Replace all occurrences of the other values with FBSessionLoginBehaviorForcingWebView to force FB to open a WebView.
This took me hours to figure out. I hope this helps you.
The new FacebookSdk.framwork is in form of static library which you can't update or change and you have to use as it is.
But if you want to update facebook.m then you download sdk source from github where you can found the source files for the sdk where you can update files whichever you want. I am giving link below from where you can download the source.
https://github.com/facebook/facebook-ios-sdk
Optional:-(if you getting error with iOS 6.x)
once you download the source then open the Facebook-ios-sdk project file and build the files using armv7 and armv7s architecture if you want to use sdk with iOS 6.x
So I downloaded the latest 3.1 Facebook iOS sdk and under the scripts I found a build_documentation.sh which I ran. It completed and generated a com.facebook.Facebook-SDK-3_0-for-iOS.docset file. I am trying to get it to integrate nicely with XCode. I know that apple docs can create documentation that shows up in the quick help panel. My own custom documentation works great.
Does anyone know what I have to do to get the same kind of documentation integration with Facebook?
EDIT:
I tried adding the docset to the corresponding folder according to the instructions here
and restarted Xcode but it didn't work
If you install the SDK from the package you don't have to generate the docset yourself.
Go to https://developers.facebook.com/ios
Click on the Download SDK button
You can get the Facebook Documentation working with the following:
Build the Facebook Documentation with the provided shell scripts
Move the .docset to /Library/Developer/Shared/Documentation/DocSets
If it doesn't work, you may have to check, if you moved the docset to ~/Library/Developer/Shared/Documentation/DocSets. This is sometimes WRONG
Why does it work by installing the Facebook Framework directly from the .pkg?
It moves it to /Library/..., not to ~/Library/...
I'm attempting to upgrade from Facebook SDK 2.0 to 3.0 and I'm having basically the same issue as is mentioned in this thread: XCode & Facebook IOS SDK - Instructions incorrect but with a slightly different goal I think.
I'm using the instructions here: http://developers.facebook.com/docs/mobile/ios/build/
When I try to build the static library, I get a "no such file or directory" message. I checked, and sure enough, there is no build_facebook_ios_sdk_static_lib.sh file in the "scripts" directory when I try to execute it.
Here's my dilemma. We have multiple developers on the project (and some other members who basically know how to pull down and build within Xcode but that's about it), and I don't want to require all of them to install the Facebook SDK. Same for a build machine (though in that instance I suppose we could install the SDK directly on the build machine).
It sounds like building a static library has been effectively deprecated, or maybe I'm missing something, but what I really need to just get all the pertinent code into our repository, and in a form in which anyone can just pull it down and build. Is this possible with the 3.0 SDK, and if so, what would be the steps to do that?
Thanks!
For the Facebook SDK 3.1 (latest from 3.0) you should not follow the old instructions, instead check these instructions out:
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/