I am new to facebook application.
I am a ASP.NET developer but also have knowledge of PHP.
I just want to know if i have to choose facebook application API/framework, which one i should choose ASP.NET or PHP.
One of my friend suggest that Facebook itself build in PHP and they officially support PHP API, so use PHP facebook application API/framework.
Please suggest!!!!
If you are familiar with .Net, you can try use the Microsoft's facebook SDK.
This is a nice & easy (and basic) step-by-step guide.
Related
I want to implement Oauth to protect my PHP Web Services,i have been following this link but found that some of them link are not working.And the working example had implemented in slim,flight some different frameworks in php and i'm newbie in it.My problem is i want to implement Oauth in Codeignter framework to protect Web Service and as per oauth site i've got a link by Alex Bilbie which is deprecated and not working. So if someone had done this before in codeigniter please let me know , Simple PHP would be also fine, later on i can modify it to fit in codeigniter.
I find Brent Shaffer's OAuth2 Server Library for PHP an excellent library!
In the cookbook you can find many examples on how to integrate it into certain frameworks, unfortunately CodeIgniter isn't one of them. But the documentation is very good, and you can use the cookbooks on the other frameworks as a guide for doing it in CodeIgniter.
You can find the library on Github.
I'm using some open source code to launch a game. The game is old, around 11yrs. It is a tick based web based game. It's written in php and using MySQL. Basically I want to port this game to ios, instead of using uiwebview I want to build native controls.
I know that it's bad practice to communicate directly with MySQL from an ios app. So what I want to do is add a RESTful API. I'm new to this and have scoured google for answers, does anyone have any pointers of where to start when adding an API to an existing site? It's quite a complex structure.
Thanks.
Paul.
My suggestion is using a framework that is guided towards building an API. I use Slim Framework for my API back end and it's pretty easy to use. If you create a separate URL for this API or include directly into the PHP project as a class it could work.
Some tutorials to get you started are
Say Hello World with Slim
RESTful services with jQuery, PHP and the Slim Framework
Writing a RESTful Web Service with Slim
Hope this helps,
Wes
I want to create a facebook share option after payment is succeeded. I am trying to develop a simple website that is coded in PHP with Zend Framework. Can you advice me something or give me reference that i can look to. Thank you in advance.
The default share functionality is considered deprecated by facebook itself. You can read about this here: Facebook Developers - Share
The suggested method is to implement the current version of the Like-button of which you can read about more on this page: Facebook Developers - Like
You'll find lots of information on the page itself. To get started, you should read yourself into Facebook Developers - PHP SDK Overview
PS: Pretty unreliant to Zend Framework itself :)
I am planning to create a facebook canvas app using php sdk.
Google app engine providing free account so I am planning to do it.
But still there is a problem , right now google app engine support only java and python.
Is there any way to run php and mysql in google app engine?
Okay, I am two years late, but from today PHP is officially available on Google App Engine.
PHP can't run natively on the App Engine. But, there is an open source tool called Quercus, a 100% Java implementation of the PHP language (requires JDK 1.5). Since the App Engine now supports Java this means you can use Quercus to run PHP scripts on the App Engine.
You can run PHP scripts on App Engine in the JVM with Quercus; however, it's still not possible to use mySQL; you'll need to use the App Engine datastore. This will require rewriting any code that touches a database, so existing PHP scripts aren't going to work without a lot of hacking.
Note: relational database support is on the App Engine roadmap, but no one knows exactly when it will be available, or whether the relational database made available will be mySQL.
Google App engine now supports PHP run time. Check official documentation here - https://developers.google.com/appengine/docs/php/
You can check this blog for details on announcement - http://spsneo.com/blog/2013/05/18/php-on-google-app-engine/
Quercus is not as good as running PHP natively and it has known issues. As i understand you are starting to create an application, so i suggest using Python in appengine. Its very easy to get started.
If you have LAMP based application in mind and if you do not want to learn a new language check out Amazon Beanstalk.
I suggest making a decision based on the strengths of the platform and flexibility you need.
Google has officially announced its support for PHP on Google App Engine (GAE)
How to host PHP web application on GAE for free is explained in this tutorial.
I have made a site which can pull and upload videos from and to YouTube,
http://www.tole-rants.com/
This site was made with the combination of Python, Google App Engine and YouTube API. It is hosted at Google App Engine. I did not code the main structure of this application bcos I don't speak Python so I was made with a Python programmer. However, we found that this application has been causing lot of problems, especially on uploading videos.
Now I hope I can code the entire site myself with PHP - is it possible?
Another big question - do I have to host this site on Google's?? Can I just host this site on a normal/ standard server which I normally do when I develop a website?
I have read the documentation about YouTube API for developers, but I still cannot get my head around if I want to make this site from scratch with PHP.
It seems to suggest that using a PHP framework - Zend Framework, which I have no clues about it - do I really have to use a PHP framework then?
Any thoughts/ better suggestions or any online tutorials/ books I can follow through?
Many thanks,
Lau
No you dont have to host it on Google's. You can host it anywhere. And you don't need to use the Zend Framework. What they are suggesting is that you use the Zend framework's GData library to communicate with YouTube API. But you wouldnt even need that. YouTube Data API documentation is complete with examples. I am sure it will help you. But ofcourse if you have some specific questions you can ask them here.