PHp Facebook application - good session / cache solution? - php

I am creating a facebook application with PHP SDK (and severals php pages) and I want a good system a session.
Do you know a good system of session/cache?
Thanks ;-)

The facebook PHP SDK uses sessions by default if your using the latest version of it.
https://github.com/facebook/php-sdk

Related

Share session between two systems in Zend Framework v1

I'm facing an issue that's beyond my Zend Framework knowledge, i hope you guys could help.
I have a old fully-functional system installed in my server (let's call it http://stable.server.com), which has a very old PHP version. I'm planning to upgrade my PHP version to the latest (and hopefully in a few months, to 7!) but my code uses a lot of deprecated functions and has some code that isn't valid for PHP 5.6 but it was for older versions. I've made a division of modules in order to migrate each module, test it and then upload it to a parallel server with the latest PHP version (let's call it http://updated.server.com). Of course each one has a different Zend installation, with the same version and configuration file.
Of course those modules has some communication between themselves, and I want to keep the change the most transparent for my users. So when I call from updated.server.com to stable.server.com and viceversa, my app asks me to login again. When I'm logged in the two systems, this communication goes straight, but I want to avoid the users to login again.
¿Any of you have made something like this? I'd like of course a secure way to avoid that login between systems, so nobody could mount a fake system and login from it.
Thank you all in advance.
I think you are looking at the two different problem.
Session is written on disk this information needs to be shared between two servers.
Cookie needs to be persistent through out the domain/subdomain.
for session sharing you can use mysql session storage.
http://framework.zend.com/manual/1.12/en/zend.session.savehandler.dbtable.html
http://framework.zend.com/manual/1.12/en/learning.multiuser.sessions.html
https://github.com/sprain/PHP-MySQL-Session-Handler/blob/master/MySqlSessionHandler.php
you can google it there are so many solution out there.
2.Domain set cookie for subdomain
you can set your cookie to be ".server.com" then it will live through out of your all domains.
This is not simple fix!! but once you are done with this implementation you can run both version at the same time on different machine with same session information.

PHP Zend, Facebook Share Option

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 :)

Is it a good idea to use CakePHP for Facebook App development project

I want to develop, facebook app, iframe app running on Facebook.com.
Is it a good idea to use CakePHP frame work for this? My app will also have Paypal integration.
I am still learning CakePHP.
Thanks,
Hardik
I recently developed a Facebook app with CakePHP and it works great. If you're developing an iframe app, then the limitations of the backend technologies are the same limitations that you'd experience outside of the Facebook environment. If you're concerned about the benefits/drawbacks of CakePHP as a PHP framework, then I'd check out this question: https://stackoverflow.com/questions/249984/php-framework-decision-analysis-paralysis.
If you are new to CakePHP, then you'll obviously find some difficulty, since there is a learning curve, but as far as using it within Facebook, you'll find that most of the issues will be surrounding the frontend, and this has nothing to do with CakePHP.
I've recently made a few Facebook Applications in CakePHP and they work just fine. Stick your whole Facebook Session handling in the AppController's beforeFilter() method so every other controller has your Facebook Session and it's pretty easy from there.

is any simple web project using cassandra and php available?

We are doing project using PHP and Cassandra. If any already finished a project using PHP and Cassandra, that is available means that will helpful for reference. Is there is any sample project available? And Facebook uses Cassandra - can we get some inputs from Facebook experience and tools? Is Facebook maintain as opened?
http://wiki.apache.org/cassandra/ThriftExamples Does that help?

Facebook application framework

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.

Categories