DISQUS

DISQUS Hello! Elliott Back's Blog is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Facebook PHP Api Performance

Started by elliottback · 8 months ago

No excerpt available. Jump to website »

21 comments

  • How do I use this? The code as posted looks like it replaces the existing FacebookRestClient class. But since that class contains all the functionality to set/refresh refs, I am not sure how to accomplish this.
  • Would be cool if you could post a unified diff, but this is great regardless. Thanks!
  • Hi

    I think you simply replace the current methods etc in the Real FB class, and add in any other stuff that isnt there like the class attributes

    Ian
  • You may wish to test this when running some FQL statements also I had some strange results, in fact I don't think it worked at all

    Ian
  • How'd you do this? Can you go into details... show more code on where to change things?
  • Good of you to let us know this can be done.... better if you could show us the modded code....
  • Yeah, it's posted--check the link.
  • Is this using the latest update - published on the 26th September?

    Please state this on the site and you should add a version within the file.

    Good work
  • Hi, the sample code zip file seems to be corrupt. I can't decompress it.
  • Anyone got a PHP4 version, or can you do this in PHP4?
  • I hate to be mean stefan, but you're a noob:

    [root@fc624389 ~]# wget http://elliottback.com/wp/wp-content/uploads/20...
    --18:04:52-- http://elliottback.com/wp/wp-content/uploads/20...
    Resolving elliottback.com... 66.240.243.89
    Connecting to elliottback.com|66.240.243.89|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 3939 (3.8K) [application/zip]
    Saving to: `facebookapi_php5_restlib.zip'

    100%[=======================================>] 3,939 --.-K/s in 0s

    18:04:52 (250 MB/s) - `facebookapi_php5_restlib.zip' saved [3939/3939]

    [root@fc624389 ~]# unzip facebookapi_php5_restlib.zip
    Archive: facebookapi_php5_restlib.zip
    inflating: facebookapi_php5_restlib.php
    [root@fc624389 ~]#
  • Quick question - I am developing a Facebook application that requires the profile box to be updated on any profile view, based on the user that is currently logged in(not the user that has the profile box).

    What would you suggest as the best way to do this?
  • Elliott, are you getting the stock data from Yahoo! for free? Is there a limit on how many requests you can make?
  • Yes, I am. I don't think there's a limit.
  • Are you currently accepting advertising on your website elliottback.com?

    Thank you,

    Nicole
    Marketing Manager
    ZTMC, INC.
  • It seems some people are having trouble with the Facebook Data Store API. I have abstracted its behaviour into several classes. Although incomplete, the WMSFacebookDataStore API allows rudimentary CRUD access to Facebook's database.

    http://www.davidjarvis.ca/facebook/
    http://www.davidjarvis.ca/facebook/docs/

    Data Store classes:
    WMSFacebookDataStore
    WMSFacebookDataStoreAssociation
    WMSFacebookDataStoreAssociationLink
    WMSFacebookDataStoreObject
    WMSFacebookDataStoreProperty
    WMSFacebookDataStoreRow

    Core classes:
    WMSFacebook
    WMSFacebookApplication
    WMSFacebookFriend (stub)
    WMSFacebookMessage (stub)
    WMSFacebookObject
    WMSFacebookProfile (stub)
    WMSFacebookUser

    At the very least it shows how to use Facebook's Data Store API.
  • Great hack, just tried it and unlike comment above, seems to work fine with the fql I'm using. I did have to take out a CURL option that wasn't supported by my hosts version of php curl (CURLOPT_TCP_NODELAY).

    Just a thought though, you don't throw FacebookExceptions with relevant failed calls (i.e. error results etc) in the closeTransaction(). What were your thoughts behind this?
  • Isn't this obsolete now due to Facebooks API batch calling?
  • is the ref-handle construction really superior to the ref-url construction? i ran some basic tests and it seems not...

    if you push to all your users profiles, then your server only gets hit once when you call the fbml_refreshRefUrl api function. where is the hammering you speak of?
  • how can i get original image in facebook album using facebook api?
  • Steven is right - the need for this functionality should be obsolete with the new batch methods. See this page for more info:

    http://wiki.developers.facebook.com/index.php/U...

Add New Comment

Returning? Login