Giter Site home page Giter Site logo

lucascorrea / scfacebook Goto Github PK

View Code? Open in Web Editor NEW
419.0 30.0 97.0 6.09 MB

The SCFacebook 4.1 is a simple and cleaner to use the api facebook-ios-sdk Objective-C Wrapper (https://github.com/facebook/facebook-ios-sdk) to perform login, get friends list, information about the user and posting on the wall with ^Block for iPhone. Suporte 4.71 FBSDKCoreKit, FBSDKShareKit and FBSDKLoginKit. Facebook SDK

Home Page: http://www.lucascorrea.com

Objective-C 97.11% Ruby 2.89%
objective-c facebook sdk wrapper block ios simple core

scfacebook's Introduction

Hi there, I'm Lucas 👋

I'm an iOS Engineer.

I have more than 19 years of experience in development, with more than 13 years as an iOS Engineer, creating applications for iPhone, iPad and Apple Watch. I have knowledge in Java (J2SE, J2EE, Swing and Android), Objective-C, Swift and Ruby (Ruby on Rails), and runs some open source projects on GitHub. Since I started my career in 2004, I have worked in several companies in different fields like call centres and payment services, and also as freelancer.

Connect with me:

codeSTACKr.com codeSTACKr | YouTube codeSTACKr | Twitter codeSTACKr | LinkedIn





scfacebook's People

Contributors

ferbass avatar gabro avatar lucascorrea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scfacebook's Issues

Problem in inviteFriendsWithMessage

When i am doing invite friend with message method dialog is appear, after i will select friend from table and send invite friend message it will give me error.

-[__NSArrayM isEqualToString:]: unrecognized selector sent to instance 0x75c8530

*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: -[__NSArrayM isEqualToString:]: unrecognized selector sent to instance 0x75c8530

Can you please help me to resolve the error...

i have tested with ios 5.* and 6.* sdk but both have same error...

Pages options don't work

None of the options under "Pages" works for me. The results range from an alert saying I canceled permission when I actually said "allow" to alerts with FB error messages about not having publish permissions to an endless loading UI.

Analyzer issue reported

Hello.
When running analyzing in my project, I got these warnings that could be fix. Have a look:

/Users/riccardomasci/Desktop/AppProjects/Progetti/Angel/Pods/SCFacebook/SCFacebook/SCFacebook/SCFacebook.m:165:13: warning: Value argument to 'setObject:forKey:' cannot be nil
            [params setObject:url forKey:@"link"];
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/riccardomasci/Desktop/AppProjects/Progetti/Angel/Pods/SCFacebook/SCFacebook/SCFacebook/SCFacebook.m:170:13: warning: Value argument to 'setObject:forKey:' cannot be nil
            [params setObject:message forKey:@"message"];
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/riccardomasci/Desktop/AppProjects/Progetti/Angel/Pods/SCFacebook/SCFacebook/SCFacebook/SCFacebook.m:176:13: warning: Value argument to 'setObject:forKey:' cannot be nil
            [params setObject:caption forKey:@"message"];
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/riccardomasci/Desktop/AppProjects/Progetti/Angel/Pods/SCFacebook/SCFacebook/SCFacebook/SCFacebook.m:181:13: warning: Value argument to 'setObject:forKey:' cannot be nil
            [params setObject:videoData forKey:@"video.mp4"];
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/riccardomasci/Desktop/AppProjects/Progetti/Angel/Pods/SCFacebook/SCFacebook/SCFacebook/SCFacebook.m:558:64: warning: Dictionary value cannot be nil
    [SCFacebook graphFacebookForMethodPOST:@"me/albums" params:@{@"name" : name,
                                                               ^~~~~~~~~~~~~~~~~
5 warnings generated.

Thank you very much.

Not able to get friend list

Hi,
When i try to run your demo. i am unable to get the friend list. it returns empty array. When i debug the code, i get that Facebook SDK method returning the No of friends but not the friend list.

Thanks

facebook sdk update

could you plz update the project to make him work with the latest facebook sdk

pod lib lint SCFacebook.podspec fails validation & thus fails importation into Swift

I modularize applications I create with Cocoapods (all in Objective C), which use SCFacebook as a subspec which in turn, has subspec's for Faceebook. Currently, I may use the Facebook subspec's directly without issue, and may likewise use the sample app included in SCFacebook which also uses the Facebook spec's without issue (though all in Obj-C), yet using SCFacebook as a subspec causes problems when imported into a new Swift project with various messages which are likewise returned in the cocoapods lint of the podspec:

pod lib lint SCFacebook.podspec 

 -> SCFacebook (4.0)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - ERROR | xcodebuild:  FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:21:9: error: include of non-modular header inside framework module 'FBSDKLoginKit.FBSDKLoginButton' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h:21:9: error: include of non-modular header inside framework module 'FBSDKLoginKit.FBSDKLoginConstants' [-Werror,-Wnon-modular-include-in-framework-module]
    - NOTE  | xcodebuild:  /Users/ghost/Documents/projects/ic2/SCFacebook/SCFacebook/SCFacebook.h:28:9: fatal error: could not build module 'FBSDKLoginKit'
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKAppGroupContent.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKAppGroupContent' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKAppGroupContent.h:22:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKAppGroupContent' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKAppInviteContent.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKAppInviteContent' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKGameRequestContent.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKGameRequestContent' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKLikeButton.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKLikeButton' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKLikeObjectType.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKLikeObjectType' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKLikeControl.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKLikeControl' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKSharingContent.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKSharingContent' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKSendButton.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKSendButton' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareOpenGraphObject.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKShareOpenGraphObject' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareButton.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKShareButton' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareConstants.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKShareConstants' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareDialogMode.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKShareDialogMode' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareOpenGraphAction.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKShareOpenGraphAction' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKSharePhoto.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKSharePhoto' [-Werror,-Wnon-modular-include-in-framework-module]
    - ERROR | xcodebuild:  FBSDKShareKit/FBSDKShareKit/FBSDKShareKit/FBSDKShareVideo.h:21:9: error: include of non-modular header inside framework module 'FBSDKShareKit.FBSDKShareVideo' [-Werror,-Wnon-modular-include-in-framework-module]

It seems related to the matters concerning subspecs hinted in post announcing Swift support:

http://blog.cocoapods.org/Pod-Authors-Guide-to-CocoaPods-Frameworks/

And exhibits errors listed therein at Current Situation with Existing Podspecs / Common Header Pitfalls

I will continue to try and resolve it myself and share any findings in a pull request if discovered in a timely manner, etc. As direct usage of Facebook seems to work fine, but I prefer the simplicity of your API all things being equal. Thanks in advance if you have a few cycles, regardless, happy coding :)

The friend can't receive any notification after I invited them

I have used your code. But the friend can't receive the invite notification in FB app of mobile after I sent to a friend invite message.

My demo isn't game category and It is a application. I will how to invite a friend to achieve the following results?
1. he/she can receive this notification in Facebook of mobile.
2. There can auto-forward to a website while he/she click this notification.

Thanks

login via facebook popup

when i press login it open a popup for facebook login
its not getting me to the facebook app,
is that normal ?

I am not getting Friend List.

Hi, This is great library for Facebook data fetching,

I am getting one issue in that, i have run this code,

I am successfully login and getting profile data also, but when i am call get friend not getting friend list, can you please help me for the same.

I am debug the app then i have seen at one point in response i am getting friends count but not getting friend data like below.

{
data = (
);
summary = {
"total_count" = 309;
};
}

Please guide me for the same.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.