Giter Site home page Giter Site logo

rtfacebookalbum's Introduction

RTFacebookAlbum

Build Status Join the chat at https://gitter.im/rishabhtayal/RTFacebookAlbum Coverage Status Version Platform

Usage

To run the example project, just clone the repo and open xcodeproj file.

Requirements

Installation

RTFacebookAlbum is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "RTFacebookAlbum"

To quickly try RTFacebookAlbum demo project:

pod try RTFacebookAlbum

##Usage

You need to create an app on https://developers.facebook.com/ to use this library in an actuall app and then add the Facebook app id to your app. The example project is already connected to a sample app on Facebook.

After you have created an app on Facebook you need to edit you Info.Plist. Add a key-value pair with key 'FacebookAppID' and value as the app id obtained from facebook app. Second key-value pair would be

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb[YOUR APP ID]</string>
        </array>
    </dict>
</array>

In AppDelegate Add

-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
    return [FBAppCall handleOpenURL:url sourceApplication:sourceApplication];
}
-(void)applicationDidBecomeActive:(UIApplication *)application
{
    [FBAppCall handleDidBecomeActive];
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was    previously in the background, optionally refresh the user interface.
}

Author

Rishabh Tayal, [email protected]

License

RTFacebookAlbum is available under the MIT license. See the LICENSE file for more info.

rtfacebookalbum's People

Contributors

rishabhtayal avatar bhoomit avatar gitter-badger avatar

Stargazers

Caleb L Waddell avatar Steeven Sylveus avatar Instant Flashback avatar İsmail avatar  avatar  avatar Inder avatar Ash Richards avatar Mattias Pfeiffer avatar haley. avatar Jigar M avatar Mike D avatar Steve avatar Cong Nguyen avatar Maziyar Panahi avatar Weihan avatar Jaesung Koo avatar Daniel Sanche avatar Clemens avatar  avatar Robin Chou avatar Sash Zats avatar Caroline Begbie avatar liu-b avatar  avatar Jack Pooley avatar Vimal Murugan avatar Duc Nguyen avatar Emmanuel A. Simon avatar Tim Kersey avatar Younes avatar Erhan Bayraktar avatar  avatar

Watchers

mayulu avatar James Cloos avatar

rtfacebookalbum's Issues

Not all photos of the album appears

Hi,

I migrated your code in order to use Facebook SDK 4.1 because your cold was deprecated. My problem now is that I am fetching only 25 photos per album and not all the album. Do you know why?

Kind Regards, Juan

Exception when trying to show albums

I am using the most recent version of your cocoapod and I am getting this exception when I try to show the Facebook albums. Any idea what the issue is?

Thanks so much for your work here!

2015-03-28 14:49:28:976 [ERROR] Exception: Could not load NIB in bundle: 'NSBundle </Users/ericgross/Library/Developer/CoreSimulator/Devices/18941867-D54E-4248-B194-63FE6EC190EC/data/Containers/Bundle/Application/AB83DBC2-A54F-4E1D-AD1F-CAC43FE2706D/Buds.app> (loaded)' with name 'RTFacebookAlbumCell'
Call stack:
(
    0   CoreFoundation                      0x000000010dfe3a75 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010dc7cbb7 objc_exception_throw + 45
    2   CoreFoundation                      0x000000010dfe39ad +[NSException raise:format:] + 205
    3   UIKit                               0x000000010c94a133 -[UINib instantiateWithOwner:options:] + 552
    4   UIKit                               0x000000010c94bf92 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 160
    5   Buds                                0x00000001094711ed -[RTFacebookAlbumViewController tableView:cellForRowAtIndexPath:] + 285
    6   U2015-03-28 14:49:28.975 Buds[9089:29421] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/ericgross/Library/Developer/CoreSimulator/Devices/18941867-D54E-4248-B194-63FE6EC190EC/data/Containers/Bundle/Application/AB83DBC2-A54F-4E1D-AD1F-CAC43FE2706D/Buds.app> (loaded)' with name 'RTFacebookAlbumCell''
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010dfe3a75 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010dc7cbb7 objc_exception_throw + 45
    2   CoreFoundation                      0x000000010dfe39ad +[NSException raise:format:] + 205
    3   UIKit                               0x000000010c94a133 -[UINib instantiateWithOwner:options:] + 552
    4   UIKit                               0x000000010c94bf92 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 160
    5   Buds                                0x00000001094711ed -[RTFacebookAlbumViewController tableView:cellForRowAtIndexPath:] + 285
    6   UIKit                               0x000000010c77ae03 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 508
    7   UIKit                               0x000000010c75a901 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2846
    8   UIKit                               0x000000010c77078c -[UITableView layoutSubviews] + 213
    9   UIKit                               0x000000010c6fd1c3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521
    10  QuartzCore                          0x000000010c305c58 -[CALayer layoutSublayers] + 150
    11  QuartzCore                          0x000000010c2fa87e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
    12  QuartzCore                          0x000000010c2fa6ee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
    13  QuartzCore                          0x000000010c26836e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
    14  QuartzCore                          0x000000010c269482 _ZN2CA11Transaction6commitEv + 390
    15  QuartzCore                          0x000000010c269aed _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
    16  CoreFoundation                      0x000000010df18507 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    17  CoreFoundation                      0x000000010df18460 __CFRunLoopDoObservers + 368
    18  CoreFoundation                      0x000000010df0e293 __CFRunLoopRun + 1123
    19  CoreFoundation                      0x000000010df0dbc6 CFRunLoopRunSpecific + 470
    20  GraphicsServices                    0x000000010f39aa58 GSEventRunModal + 161
    21  UIKit                               0x000000010c683580 UIApplicationMain + 1282
    22  Buds                                0x0000000109188eb3 main + 115
    23  libdyld.dylib                       0x000000010e612145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
IKit                               0x000000010c77ae03 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 508
    7   UIKit                               0x000000010c75a901 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2846
    8   UIKit                               0x000000010c77078c -[UITableView layoutSubviews] + 213
    9   UIKit                               0x000000010c6fd1c3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521
    10  QuartzCore                          0x000000010c305c58 -[CALayer layoutSublayers] + 150
    11  QuartzCore                          0x000000010c2fa87e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
    12  QuartzCore                          0x000000010c2fa6ee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
    13  QuartzCore                          0x000000010c26836e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
    14  QuartzCore                          0x000000010c269482 _ZN2CA11Transaction6commitEv + 390
    15  QuartzCore                          0x000000010c269aed _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
    16  CoreFoundation                      0x000000010df18507 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    17  CoreFoundation                      0x000000010df18460 __CFRunLoopDoObservers + 368
    18  CoreFoundation                      0x000000010df0e293 __CFRunLoopRun + 1123
    19  CoreFoundation                      0x000000010df0dbc6 CFRunLoopRunSpecific + 470
    20  GraphicsServices                    0x000000010f39aa58 GSEventRunModal + 161
    21  UIKit                               0x000000010c683580 UIApplicationMain + 1282
    22  Buds                                0x0000000109188eb3 main + 115
    23  libdyld.dylib                       0x000000010e612145 start + 1
)
(lldb) 

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.