Wher can I find a good documentation on these two PHP files and a more detail & indepth use of each function?
Facebook documentation is... not informatitve enough. lol
I feel your pain.
facebookapi_php5 is mainly each API method.
facebook is mainly for session/auth.
The best place I've found so far is the developer forums, but it is mainly questions without answers.
Since Facebook is always changing their API, the documentation is inevitably lacking and/or out of date. If you are looking up viral information, you going to find a lot of pages that say they have been deprecated.
My most used pages are:
http://wiki.developers.facebook.com/index.php/API
http://wiki.developers.facebook.com/index.php/FBML
http://wiki.developers.facebook.com/index.php/FBJS
You can play around with the API here:
http://developers.facebook.com/tools.php?api
But in the end, just about everything in those files gets passed through the post_request function in the facebook_php5_restlib file. That's where the curl function is for "posting" to Facebook. You can always capture what's going on in that function.
Related
I am new to CakePHP, my first framework. I've been doing some of the basic tutorials provided in the documentation, and I often come across a method or an attribute that I want to know more about. For example:
//App/Model/User.php
...
public function isOwnedBy($post, $user) {}
My question is, how do I find more details about any attribute or method? I've tried searching using the internal search but no results. I've also been googling in the hope that that might give me results, but nope. I've tried using the API to look it up, but no results either. Am I doing something wrong?
Understanding what exactly a method does, and an attribute is, makes it much easier to follow the tutorials in my own experience. Especially in the Authentication/Authorization stage, where lots of methods and attributes get introduced without too much explanation.
If it's part of the core API, then it's documented in the API docs. Parts of the API are also described in detail in the CookBook. To get a more detailed grasp on what's going on you can of course always have a look at the source code.
That specific method however is a custom model method from the CookBooks Simple Authentication and Authorization Application example, so you won't find anything about it in the API documentation as it's not part of the core API.
In case the code provided in the examples isn't documented well enough for you to understand it, then you can always ask for further explanation/help, for example in the groups, the chat, etc (see http://community.cakephp.org/), and also here on Stack Overflow if you have a specific questions.
Can somebody help me in understanding how to retrieve the home timeline of the user. Examples of how this could be used would be perfect, but if that is too much to ask for, then links to tutorials which start at the beginner would also be great which can go through step by step.
Also what other external files would I need to be able to accomplish this?
check this...There are several links also. this might be useful. http://viralsolani.wordpress.com/2012/05/26/writing-your-first-twitter-application-with-oauth/
I'm working with Intense Debate. I keep looking for a way to integrate a non-javascript version in my websites… and I was hoping there would be some sort of PHP Class available but I can not find one on google, and the API they provide is a Javascript API for customization.
What I want to do is use Intensedebate like wordpress does but in my own script. They said this in their FAQ on SEO:
IntenseDebate outputs the standard WordPress comments enabling your comments to still be indexed by search engines that ignore JavaScript, while ensuring that visitors surfing with JavaScript disabled will be able to interact with comments made in IntenseDebate. Readers with JS disabled can comment in the original WP system and those comments will be imported into ID.
That is actually what I am trying to achieve with my own custom PHP script. But there is no documentation on this…
You can see what I mean on my temporary test page: http://repost.be/index.php
As you can see when you disable javascript… you can't see the comments, nor comment.
That is by the way just an HTML page with custom Javascript that Intensedebate provided.
Any thoughts on how I can interact with their API properly or find a PHP class that does so?
I'm not familiar with IntenseDebate, but from what I can gather from their help docs and general comments on the net, their system absolutely requires Javascript to run. There's no way to use their data through another API.
Apparently IntenseDebate gives WP users the option to sync their comments with IntenseDebate through the provided Wordpress plugin. Maybe you
I have done a load of searching but haven't found anything. There seem to be a lot of jobs asking for this functionality yet no one really talking about whether / how it can be done.
Does anyone know if this is possible and if so where I could extract the data from?
Check the official libspotify documentation and more specifically the playlist subsystem.
Note that this is a C API, not PHP.
Aside from the PEAR repository, which I find often has quite messy code with a lot of it using old or deprecated methods and techniques, I was wondering if there was a great place to find simple (and not so simple) PHP examples of some generic functions and good pieces that people have written.
A good example would be the PEAR spreadsheet module I used a while back. The thing worked but it was written quite messily and if I remember correctly, in PHP 4.
I'd like to find something with well written and well documented code that I can refer to and see exactly how people are doing things and why they are doing things that way.
The PHP manual's as good a place to start as any, I've particularly found some of the comments on there helpful.
There's also The PHP Resource Index, which is mostly a jumping off point to other projects' websites.
Don't forget to look at questions tagged PHP on stackoverflow.
Have a look at PHP Classes. They have a large selection of classes, all with user ratings.
There's also Zend Framework spesific ZF Snippets site
Github is another good resource, more often than not it is polished code that is updated frequently.
Getting classes from other people is all well and good but keep upgrade-ability in mind, if i'm using someone else's class and need to tweek it i always extend from it.